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 Lei Chen <Le...@sfcommerce.com> on 2001/07/27 02:22:26 UTC

schemaLocation configurable????

Hi, 

I'm wondering if schemaLocation in an XML document is configurable i.e. not
hardcoded in the XML instance. For example, I want to be able to do xml
validation using a schema file located on our intranet, then send the xml
document to another organization via HTTP. The other organization's system
won't be able to access our schma file. So I would like this organization to
use a copy of the schema but located in their intranet to validate the XML. 

Is this doable with Xerces?

Thanks,
-Lei

Re: schemaLocation configurable????

Posted by Maik Weber <ma...@gmx.de>.
Hi Lei Chen,

yes, its possible. Just use the property
"http://apache.org/xml/properties/schema/external-schemaLocation". See
also the Xerces documentation / Properties.

greeting maik

Lei Chen wrote:

>
>
> Hi,
>
> I'm wondering if schemaLocation in an XML document is configurable
> i.e. not hardcoded in the XML instance. For example, I want to be able
> to do xml validation using a schema file located on our intranet, then
> send the xml document to another organization via HTTP. The other
> organization's system won't be able to access our schma file. So I
> would like this organization to use a copy of the schema but located
> in their intranet to validate the XML.
>
> Is this doable with Xerces?
>
> Thanks,
> -Lei

--
* Homepage: www.webis-world.de
* mailto        : maikweber@gmx.de
* ICQ           : #57313947



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