-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/xml: Marshal ignores fields tagged with ",any" #3559
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
Labels
Milestone
Comments
I've attached a patch. However it fails the adjusted test: - ExpectXML: `<a><nested><value>known</value></nested></a>`, + ExpectXML: `<a><nested><value>known</value></nested><AnyField><unknown/></AnyField></a>`, Some strange things going on with the parent nesting, I wouldn't have expected this from reading the code. Attachments:
|
Attached is a patch that includes the test, too. I couldn't find any documentation that seemed relevant to update, but this seems to have been deliberately omitted, so there may be a pitfall somewhere that we should mention. Another example of code that seems like it should work: http://play.golang.org/p/3RGBUECm7z Attachments:
|
This issue was closed by revision a9121a1. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by chris.jones.yar:
The text was updated successfully, but these errors were encountered: