I forgot, Im using Xeces 2.1.0.
-----Original Message-----
From: Borislav Stoyanov
Sent: Thursday, February 26, 2004 6:03 PM
To: '[EMAIL PROTECTED]'
Subject: Not able to make XercesDOMParser Schema Validation working
Hi, I have been trying to validate an XML document with a schema grammar
that I pre-parse before parsing the main document. My schema grammar parses
successfully, but I've not been able to apply it to the parsing of the
target XML document. Help! I am using the XercesDOMParser APIs as follows:
pParser = TL_NEW XercesDOMParser();
pParser->setExternalSchemaLocation(SchemeLocation);
pParser->setDoSchema(true);
pParser->setDoValidation(true);
try
{
pParser->parse(XMLFileName);
pDocument = (DOMDocument*)pParser->getDocument();
} catch (...)
{
... nothing happens
I'll appreciate if you can help.
Best regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]