10nx I tried this but it didnt help. I cannt find any working examples in Inet either.
-----Original Message----- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:15 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Validation working At 18.06 26/02/2004 +0100, Borislav Stoyanov wrote: >I forgot, Im using Xeces 2.1.0. Have you added setDoNamespace(true)? without namespace, no schema validation can be done. Alberto >-----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] --------------------------------------------------------------------- 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]
