W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

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

From: Piotr Puszcz <proint@poczta.onet.pl>
Date: Tue, 11 Feb 2003 14:15:52 +0100
Message-ID: <001d01c2d1cf$b4a36dc0$d9e35cc2@puszczyk>
To: <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT