Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: add support MarshalXML and UnmarshalXML interfaces to match json. #4016
I think it may have been removed due to issue #2771. But it really needs to be added back for formatting of custom types, for consistency with MarshalJSON and MarshalJSON. For example: http://play.golang.org/p/HUeL1bUnMz Getting the xml to work correctly, requires a convoluted inelegant solution, which doesn't feel like Go at all. While, the JSON part just works beautifully.