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]