It means two or more of the schema documents you specified have the same 
target namespace [1]. JAXP doesn't allow that. You need to make sure each 
of the schemas you specify using the schemaSource property have a unique 
target namespace.

[1] http://www.w3.org/TR/xmlschema-1/#key-targetNS

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

"Decoker, Lydie \(Lydie\)" <[EMAIL PROTECTED]> wrote on 09/21/2006 
05:17:13 AM:

<snip/>

> That time I have got:
>    java.lang.IllegalArgumentException:  When using array of Objects
> as the value of SCHEMA_SOURCE property , no two Schemas should share the
> same    targetNamespace. 
> 
> I do not understand this error too.
> 
> To set the schema location, I did:
> 
> domFactory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaS
> ource", schemaLocation);
> 
> Thx in advance.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to