You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Ragu Rao <Ra...@DOR.GA.GOV> on 2006/02/26 09:02:08 UTC
Validation with XML Schema importing multiple XSD
I have any application where my main schema imports multiple xsd's.
Main.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AAA"
targetNamespace="AAA">
<xsd:include schemaLocation="One.xsd"/>
<xsd:include schemaLocation="Two.xsd"/>
.......
When I place all schema files in current directory where I am running my
java program it validates the XML without errors, loading all the
imported xsd's.
If I place all the schema files in another folder and provide location
of Main.xsd in SchemaSource, I get an error schema_reference.4: Failed
to read schema document 'One.xsd', because 1) could not find the
document
For all imported XSD. Except the Main.xsd.
Any help to resolve this will be appreciated.
Thanks
Ragu