Re: DOM Validation of XML against a schema

2002-11-22 Thread Tinny Ng
ny - Original Message - From: Kevin Belhumeur To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:42 PM Subject: RE: DOM Validation of XML against a schema With the help of Philippe and a DOM sample I constructed the program shown below.  I find t

RE: DOM Validation of XML against a schema

2002-11-21 Thread Kevin Belhumeur
With the help of Philippe and a DOM sample I constructed the program shown below.  I find the exception stratgy usefully to detect really exceptional conditions as stated in the API doc, for example - a malformed xml header.   I am still struggling however to understand how to detect logica

Re: DOM Validation of XML against a schema

2002-11-21 Thread Philippe HAUTION
Hello, You could define an ErrorHandler and then try something like this before parsing :     parser->setErrorHandler(myErrorHandler);     parser->setValidationScheme(XercesDOMParser::Val_Always);     parser->setValidationSchemaFullChecking(true);     parser->setDoNamespaces(true);     parser-

DOM Validation of XML against a schema

2002-11-21 Thread Kevin Belhumeur
> How do I validate XML against a schema when parsing using DOM as in: > > pDomDocument = pDOMBuilder->parse( domInputSource ); > > I have schemas for the simple XML files in the domInputSource and am mainly >interested in getting useful structure/content error messages at parse time. > >