Thx I see that some xsd had the same target namespace. I will correct it. By the way, should I use EntityResolver and Catalog for such validation? I am not sure I have understood correctly their usage :o(
Lydie. -----Original Message----- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 16:16 To: [email protected] Subject: Re: Trying to validate XML files using several XSD 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/schem > aS > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
