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

Closed
gopherbot opened this Issue Aug 28, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@gopherbot
Copy link

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: 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.
@rsc

This comment has been minimized.

Copy link
Contributor

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.
You can’t perform that action at this time.