Xerces will check out the schema before you parse an XML file with it.
If there are problems, it prints detailed errors, then attempts to process
the XML file if the errors are not fatal.

http://ultrasparcy.mhcomputing.net/~mhall/validator.zip might help you.

HTH!
Matt

-----Original Message-----
From: Elisha Berns [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 7:15 PM
To: Xerces C++ Development
Subject: Validating XSD(s)


A question, not a bug:

What is the best way to validate XSD schemas using Xerces?

I know I can use SAX2XMLReader:: loadGrammar () to load a schema file
and get a Grammar object.  That's perhaps the simplest way,  and I can't
tell whether it's the best way to get detailed errors.

Thanks,

Elisha Berns
[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.


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

Reply via email to