You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Schawn E. Thropp" <th...@adlnet.org> on 2001/06/07 14:29:31 UTC

Telling DOMParser which Schema to use

I am relatively new to Xerces and I am hoping that this is the right
forum to ask development
types of questions.

What is the proper way to let the DOMParser know which schema to use for
validation.
In Xerces 1.3.1 I was successful in getting the following to parse and
validate:

<manifest identifier="ProfileExamplesManifest" version="1.1"
          xmlns="http://www.imsproject.org/xsd/ims_cp_rootv1p1"
          xmlns:adlcp="http://www.adlnet.org/xsd/adl_cp_rootv1p1"
          xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"

xsi:schemaLocation="http://www.imsproject.org/xsd/ims_cp_rootv1p1
ims_cp_rootv1p1.xsd

http://www.imsproject.org/xsd/ims_md_rootv1p1 ims_md_rootv1p1.xsd
                              http://www.adlnet.org/xsd/adl_cp_rootv1p1
adl_cp_rootv1p1.xsd">
...
</manifest>

Where it seemed as though the DOM Parser was using the schemaLocation
attribute to identify the schema to use.
Is this correct?

This same XML document now however does not validate with Xerces 1.4.
Has something changed or am I doing this
incorrectly?

Any help would be appreciated.
Thanks
-Schawn


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


Re: Telling DOMParser which Schema to use

Posted by Elena Litani <el...@ca.ibm.com>.
Hi, Schawn

Your test case should work with new release - I've had a similar test on
my machine and it runs with Xerces 1.4.
To invistigate more I need your test case :).
Can you send the xml and schema file?

Thank you,
Elena

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