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: does not process multiple namespace definitions correctly #9527

Closed
jordan2175 opened this Issue Jan 7, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@jordan2175
Copy link

jordan2175 commented Jan 7, 2015

The unmarshal / marshal functions do not handle multiple xmlns definitions. See:

https://play.golang.org/p/KTemXABrFb

If you remove all but one of the namespace definitions, it will sort of work.

@mikioh mikioh changed the title encoding XML does not process multiple namespace definitions correctly encoding/xml: does not process multiple namespace definitions correctly Jan 8, 2015

@mikioh

This comment has been minimized.

Copy link
Contributor

mikioh commented Jan 8, 2015

Dup of #7113

@jordan2175, feel free to send a CL; http://golang.org/doc/contribute.html

FWIW, there were CL 93320043, but not completed due to more important tasks. I think you can ask him to take over https://codereview.appspot.com/93320043.

@rogpeppe

This comment has been minimized.

Copy link
Contributor

rogpeppe commented Feb 25, 2015

The example is wrong. If you replace the namespace prefixes in the struct
tags with full URLs, then it seems to work OK.

https://play.golang.org/p/MYDT8H_s6Z

@golang golang locked and limited conversation to collaborators Jun 25, 2016

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.