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:attribute ref="NAME" use="required"/>
<xs:attribute name="NAME" type="xs:string"/>

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,


Tanie bilety lotnicze!
Received on Tuesday, 11 February 2003 11:58:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC