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
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
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-
> 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.
>
>