Added helpers for handling text nodes and fixed serialization of them.
Added Attributes overload for easier addition of an attribute.