Yes, I updated the original document to make references relative, following is the new error message which is the same as before except that it reflects the change in location of the schemas:
Warning at (file , line 0, char 0): An exception occurred! Type:RuntimeException, Message:Warning: The primary document entity could not be opened. Id=./SummitSchema.xsd ./2001_IFX110.xsd How would I verify if the parser has any netaccessor turned on? Thanks for all your help so far. Carlo [EMAIL PROTECTED] -----Original Message----- From: Dean Roddey [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Validation against XML schema without internet connection When you moved them locally, did you update the original document to make the references relative? Probably so, but I try not to assume anything. Does your build of the parser have any netaccessor turned on? -------------------------- Dean Roddey The Charmed Quark Controller Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "If it don't have a control port, don't buy it!" ----- Original Message ----- From: "Carlo Agopian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 4:27 PM Subject: RE: Validation against XML schema without internet connection > That's what I thought at first, but I tried placing the schemas in the local > directory, that didn't change anything. I am using version 1.6, but will > soon upgrade to 1.7.0. It uses version 7.9.2 of curl, but it will soon be > upgraded to 7.9.6. > > Let me know if you think of anything else that may cause this. Thanks! > > Carlo > [EMAIL PROTECTED] > > > > -----Original Message----- > From: Dean Roddey [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 3:55 PM > To: [EMAIL PROTECTED] > Subject: Re: Validation against XML schema without internet connection > > > I would assume in your case that the reason is that the netaccessor for your > version of the parser does not support secure sockets? The parser has to go > load these documents, so it has to use the access method indicated. If it > cannot support that access method, then there's not much it can do. Which > net accessor does your version of the parser use? > > -------------------------- > Dean Roddey > The Charmed Quark Controller > Charmed Quark Software > [EMAIL PROTECTED] > http://www.charmedquark.com > > "If it don't have a control port, don't buy it!" > > > ----- Original Message ----- > From: "Carlo Agopian" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 26, 2002 3:30 PM > Subject: RE: Validation against XML schema without internet connection > > > > I'm running into similar problems. Has anybody out there been successfull > > with schema validation in the DOMParser class? The current error that I'm > > getting is: > > > > Warning at (file , line 0, char 0): An exception occurred! > > Type:RuntimeException, Message:Warning: The primary document entity could > > not be opened. Id=https://ipaddress/ifx/schemas/SummitSchema.xsd > > https://ipaddress/ifx/schemas/2001_IFX110.xsd > > > > The two uri's listed above are accessable since I am able to view them > with > > a browser. I've even tried by placing the schemas in my local > development > > directory where the executable is. I keep getting the same error message. > > Any clue on what this error message really means? Any help would be > greatly > > appreciated. Thanks. > > > > Carlo > > [EMAIL PROTECTED] > > > > > > > > > > -----Original Message----- > > From: Urbons, Steffen [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 17, 2002 2:29 AM > > To: [EMAIL PROTECTED] > > Subject: Validation against XML schema without internet connection > > > > > > Hi, > > > > I'm using Xerces C++ 1.7 and quite new to XML. > > > > I'd like to validate my XML against a XML Schema when parsing, but it > > doesn't work. The schema or referenced resources seem not to be found and > > when I enforce validating by setting > > > > m_parser->setValidationScheme(DOMParser::Val_Always); > > > > I get a lot of parsing erros reported by the ErrorHandler I've defined. > > Parsing without validating works fine. > > > > My XSD Schema is stored locally and is specified in the document instance > of > > the XML. In every XML and XSD file I found, resources in the internet are > > referenced. What if my computer cannot access the internet. Do I have to > > download several resources and store them locally? I have found this > > question in newgroups but nobody has given an answer. > > > > Here some parts of my code: > > > > // Init the DOM parser. > > m_parser->setValidationScheme(DOMParser::Val_Auto); > > m_parser->setDoNamespaces(true); > > m_parser->setDoSchema( true ); > > m_parser->setValidationSchemaFullChecking(true); > > > > try > > { > > // Parse input buffer > > m_parser->parse(*m_pInputSource); > > iErrorCount = m_parser->getErrorCount(); > > } > > > > catch (const XMLException& toCatch) > > { > > //... > > } > > catch (const DOM_DOMException& toCatch) > > { > > //... > > } > > catch(...) > > { > > //... > > } > > > > Thank's for any help, > > > > > > Steffen Urbons > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
