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
Closed

Comments

@jordan2175
Copy link

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
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
Copy link
Contributor

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.
Projects
None yet
Development

No branches or pull requests

4 participants