Prints namespaces when serializing nodes

Not sure if this complies with the specification but it's definitely needed when dealing with XML content.