You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
http://play.golang.org/p/qb45AYAD4U
What is the expected output?
I expect that the "struct" node defined in line 44 appears in the XML output.
What do you see instead?
I see no "struct" node. Instead I have to add a useless "x" node to
get the expected output.
Which compiler are you using (5g, 6g, 8g, gccgo)?
play.golang.org
Which operating system are you using?
play.golang.org
Which version are you using? (run 'go version')
go1.2rc3
The text was updated successfully, but these errors were encountered:
It's not dropping "struct". It is using it to set the default name for each xml item
corresponding to the array element of type interface{}. However, your array elements are
overriding that default by setting an xml.Name. You can drop the xml.Name.
http://play.golang.org/p/VhDJlNImu-
This means, that the xml.Name attribute of an array does not name the array but the
children. This is far from obvious that container elements do not have their own name,
but get their name by the container. But if it is intended...
by ceving:
The text was updated successfully, but these errors were encountered: