Xerces with xs:override

Patricia <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <[email protected]>
Hi,

I am trying to use xs:override with xerces-j 2.11.0, but I keep receiving the "Element 'override' is invalid, misplaced, or occurs too often" error. 

I am trying to use the example below.

Could you please help me find what might be wrong?

> A.xsd
>  
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>     <xs:complexType name="personName">
>         <xs:sequence>
>             <xs:element name="firstName"/>
>             <xs:element name="lastName"/>
>         </xs:sequence>
>     </xs:complexType>
>     <xs:element name="phone" type="xs:string"/>
> </xs:schema>
>  
> B.xsd
>  
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>     <xs:override schemaLocation="A.xsd">
>         <xs:complexType name="personName">
>             <xs:sequence>
>                 <xs:element name="givenName"/>
>                 <xs:element name="surname"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:override>
> </xs:schema>
> 

Thank you very much
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.