Change "http://www.w3.org/2000/10/..."; to "http://www.w3.org/2001/..."; in
both .xml and .xsd files.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                       
                            
                    "Schawn E.                                                         
                            
                    Thropp"              To:     [EMAIL PROTECTED]           
                            
                    <thropp@adlnet       cc:                                           
                            
                    .org>                Subject:     Telling DOMParser which Schema 
to use                        
                                                                                       
                            
                    06/07/2001                                                         
                            
                    08:29 AM                                                           
                            
                    Please respond                                                     
                            
                    to                                                                 
                            
                    xerces-j-dev                                                       
                            
                                                                                       
                            
                                                                                       
                            



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to