Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding/xml: add support MarshalXML and UnmarshalXML interfaces to match json. #4016

gopherbot opened this issue Aug 28, 2012 · 1 comment


Copy link

@gopherbot gopherbot commented Aug 28, 2012

by krolaw:

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:

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.

This comment has been minimized.

Copy link

@rsc rsc commented Sep 12, 2012

Comment 1:

Yes, issue #2771 is the issue for adding them back.

Status changed to Duplicate.

Merged into issue #2771.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.