Closed
Description
Nested XML namespaces aren't marshalled correctly. Setting an element namespace at the default level as Go does, implicitly sets nested elements to the same namespace if they don't override it. <a xmlns="b"><c/></a> The namespace of c, is b. However marshalling from Go data structures in which the object corresponding to c above has no namespace set should give <a xmlns="b"><c xmlns=""/></a> The usual way to deal with this is to use namespace prefixes, but I don't think that's a requirement.