add workaround for unserializable Attributes and TextContent

1 job for dev in 2 minutes and 11 seconds (queued for 2 seconds)