encoding/xml: It does not read correctly the field tag from xml.Name when it unmarshals an XML from a string #59178
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to xml.Unmarshal a specific XML in a string format and it through an error.
Here is the link to the code https://go.dev/play/p/-eFryHvZ-0E
What did you expect to see?
I expected no error.
What did you see instead?
This error
It is like the xml.Unmarshal does not read the field tag of the XMLName.
The text was updated successfully, but these errors were encountered: