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
Unmarshal uses a case-sensitive comparison to match XML element names to tag values and struct field names.
Unless I'm really confused about something, that should be "case-insensitive" instead. At least, that's my experience with using encoding/xml and encoding/json.
The text was updated successfully, but these errors were encountered:
rakyll
changed the title
Typo in encoding/xml package.
encoding/xml: typo in docs
Oct 3, 2015
The documentation is accurate. The field won't match if the XML element's case doesn't match. See http://play.golang.org/p/9oZIgl9n3X where Name is an empty string after unmarshalling.
The documentation of
func Unmarshal
states:Unless I'm really confused about something, that should be "case-insensitive" instead. At least, that's my experience with using
encoding/xml
andencoding/json
.The text was updated successfully, but these errors were encountered: