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: name space ignored on attribute #3526
Labels
Milestone
Comments
Owner changed to @niemeyer. |
Ok, foo>bar,attr bug added - https://golang.org/issue/3688 |
Ran into this issue with atom feeds from the picasa gdata api. The album feed produces entries with id nodes in the atom namespace and later id nodes in the gphoto namespace. With the namespace url being ignored in the field's tag the last decoded id node regardless of namespace is decoded into it. |
You can do so by supplying the namespace URL instead of the Prefix: Content string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"` instead of Content string `xml:"content:encoded"` |
Comment 11 by chris.jones.yar: https://golang.org/cl/6868044 addresses this. |
Thank you, Chris, for the https://golang.org/cl/6868044 patch; it looks promising. We are not there yet. While it can marshal namespaces, it cannot unmarshal them. |
https://golang.org/cl/7350048/ Here is a simple patch. |
This issue was closed by revision 4dd3e1e. Status changed to Fixed. |
CL https://golang.org/cl/6868044 references this issue. |
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: