Ruibo Cai wrote:

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



SAX2Print treats the options -n -s in the OPPOSITE way (they disable namespaces and schema support), so you have to remove them from your command line.

Alberto


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

Reply via email to