10nx SchemeLocation value was not complete (namespace was missing). I cannt still get it validated though. One thing is still unclear: all the elements in the file have the prefix XX:Element which in normal situation is given by xmlns:XX="http://www.mynamespace.de". How can this be also considered? (maybe afterthat it will work)
-----Original Message----- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:47 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Validation working At 18.42 26/02/2004 +0100, Borislav Stoyanov wrote: >10nx I tried this but it didnt help. I cannt find any working examples in >Inet either. What is the value of SchemeLocation? Is it the correct "uri location" (the URI of the namespace, followed by one space, followed by the location of the schema)? Alberto >-----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] --------------------------------------------------------------------- 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]