Hi,

I am new to XERCES.

I'm trying out some of the sample codes come with xerces c++. 

I created a xsd file and a xml file corresponding to it.

Then , I ran :

./DOMPrint -v=always -n -s -f test.xml

It prints out the whole test.xml without any error.

When I tried to use SAXPrint on the same test.xml file by running:

./SAX2Print -v=always -n -s -f test.xml

I got "Unknown element" errors for almost each line of the test.xml
file.

 

Here my question is:

Does XML schema based validation work for SAX or SAX2 at all?

 

Thanks

Ruibo

Reply via email to