XSD invalid attribute 'use' in element 'attribute [xsd/java/oracle]

hi all,
I am trying to parse xml document against xsd schema with java class
embedded in oracle stored procedure. my xsd looks like:

<?xml version="1.0" encoding="ISO-8859-2"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="PERSON">
<xs:complexType>
<xs:attribute ref="NAME" use="required"/>
</xs:complexType>
</xs:element>
<xs:attribute name="NAME" type="xs:string"/>
</xs:schema>

i have downloaded xdk for plsql from oracle, and example parsing class.
but when i try to instantiate the XMLSchema class:

XMLSchema schemadoc = (XMLSchema)builder.build(in,null);

parser exception is being thrown:
<Line 6, Column 45>: XSD-2026: (Error) Invalid attribute 'use' in
element 'attribute'

its odd, because the schema was built with XmlSpy, and it was ok.

is this some kind of restriction when using oracle xdk classes?

hope someone is through it already,
regards,
peter.

--------------r-e-k-l-a-m-a-----------------


Tanie bilety lotnicze!
http://samoloty.onet.pl

Received on Tuesday, 11 February 2003 11:58:02 UTC