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 Sridhar Raju Y <sr...@infy.com> on 2001/11/22 09:11:47 UTC

Doubt

Hi All !
  Can I use more than one schemaLocation in the root element of a
document.

Eg :
  
<package namespace="http://www.infy.com"
	 xmlns="http://www.bpmi.org/BPML"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xsi:schemaLocation="http://www.bpmi.org/BPML
WD-BPML-20010502.xsd"
	 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	 xmlns:mys="http://mys.com"
	 mys:schemaLocation="http://mys.com mys.xsd">
....
....
</package>

while parsing this document . It is raising error specifying that
mys:schemaLocation has to be declared as attribute of the package
element.

It is not allowing more than one schemaLocation.

I want to validate the instance doc against more than one xsd file.Is
there any way to achieve that.
any pointer will be great for me.

Thanks,
Sridhar.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org