-
Notifications
You must be signed in to change notification settings - Fork 18k
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 support namespace in encoding #5975
Labels
Milestone
Comments
This issue was closed by revision 85f3acd. Status changed to Fixed. |
This issue was closed by revision 56ce83f. |
This issue was closed by revision 54bdfc0. |
The code sample (http://play.golang.org/p/6lojzPMjov) that was not working well with xml namespace, continue to *not* work even after the CL ! |
The bug is about: xml with namespace --> Unmarshal into Go structure --> Marshal into xml (output is valid xml but *without* namespace) In the link I have provided, input: <ns:mytag xmlns:ns="mynamespace"> <Name>xyz</Name> </ns:mytag> output: <mytag xmlns="mynamespace"> <Name>xyz</Name> </mytag> Isn't this an issue? |
If I provide the input as: <ns1:mytag xmlns:ns1="http://www.mynsdefs.org/nsdefs-here-ns1"> <ns2:Name>xyz</ns2:Name> </ns1:mytag> Output is: <mytag xmlns="http://www.mynsdefs.org/nsdefs-here-ns1"> <Name>xyz</Name> </mytag> Isn't this an issue? ns1 & ns2 are gone in the output. play link: http://play.golang.org/p/7V9gprqiG- |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: