Closed lobatt closed 7 years ago
Ok, the problem is that when a complexType is used in restriction for simpleContent, makePkg will always assign the chardata to the underneath complexType, hence Unmarshal will fail later.
According to http://www.w3schools.com/schema/el_simpleContent.asp Text-only complexType can be used in simpleContent.
I had some code generated by go-xsd that worked perfectly fine under go1.1, however, from go1.2, the unmarshal will fail for some of the data structure, example:
from: http://www.cablelabs.com/wp-content/uploads/specdocs/MD-SP-CONTENTv3.0-I02-121210.pdf
which result in:
I have compared src/pkg/encoding/xml/read.go in go1.1 and go1.2, the error message is new.
Any thought?