Take a look at the DOMPrint or SAX2Print sample app
(depending on whether you want to build a DOM tree or process your elements in a
stream). With the appropriate options (like "-n -s -f -v=always" for DOMPrint,
"-f -v=always" for SAX2Print), they do full validation against whatever schemas
are specified within a document. There are probably other example programs that
show how to validate against a schema that you specify programmatically, if
that's what you want.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 12:34 PM
To: xerces-c-dev@xml.apache.org
Subject: Spam:RE: Validating XML against SchemaI am investigating how Xerces-C++ can be used to parse a XML and validate it against a XML schema.Greatly appreciate code snippets that show how this is done.Many ThanksEbs
PLEASE READ: The information contained in this email is confidentialand intended for the named recipient(s) only. If you are not an intendedrecipient of this email you must not copy, distribute or take anyfurther action in reliance on it and you should delete it and notify thesender immediately. Email is not a secure method of communication andNomura International plc cannot accept responsibility for the accuracyor completeness of this message or any attachment(s). Please examine thisemail for virus infection, for which Nomura International plc acceptsno responsibility. If verification of this email is sought then pleaserequest a hard copy. Unless otherwise stated any views or opinionspresented are solely those of the author and do not represent those ofNomura International plc. This email is intended for informationalpurposes only and is not a solicitation or offer to buy or sellsecurities or related financial instruments. Nomura International plc isregulated by the Financial Services Authority and is a member of theLondon Stock Exchange.