xml:Not able to Unmarshaling Name/name case sensitive and insensitive with one struct

// struct
type Test struct {
Name string xml:"Name,attr"
TestID string xml:"ID",attr"

<?xml version="1.0" encoding="UTF-8"?><Test Name="pankaj" TestID="12354"></Test>


    <?xml version="1.0" encoding="UTF-8"?><Test name="pankaj" TestID="12354"></Test>

XML is generally case sensitive. The Go XML package implements this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.