Serialise xml namespaces

XML Namespaces are currently not written out.
This adds an xmlns attribute to any serialised xml node with a namespaceURI