org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'name' cannot
843834Jan 13 2004 — edited Jan 15 2004I have a xml document with a schema with has defined simpletype as follows:
<xs:simpleType name="VARCHAR_4">
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
When I try to parse the xml document i have the following message:
org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'name' cannot appear in element 'simpleType'
I have tried with jaxp and with xerces 2 and i have the same message.
Thanks for any help!