Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'name' cannot

843834Jan 13 2004 — edited Jan 15 2004
I 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2004
Added on Jan 13 2004
1 comment
466 views