- From: Shirish Kulkarni <shirish_kul@yahoo.com>
- Date: Wed, 12 Mar 2003 07:40:27 -0800 (PST)
- To: Christian Sell <christian.sell@netcologne.de>
- Cc: xerces-c-dev@xml.apache.org, xmlschema-dev@w3.org
Hi, I am able to successfully implement EntityResolver to take care of the external schema locations. The parser is observed to throw and exception, when the Schma is missing at the specified location - but for the next call to parse() method, the application is observed to be crashing with the following stack - DOMParser::parse(0x29c4e88, 0x2110b20, 0x0, 0x29c4e8c, 0x2551bb0, 0x2a70330) XMLScanner::scanDocument(0x277aab0, 0x2110b20, 0x0, 0x2a7033c, 0x400c00, 0x3180) XMLScanner::scanDocument(0x277aab0, 0x29c0d40, 0x0, 0x29d6c68, 0x574884, 0x1bb2e0) XMLScanner::scanDocument(0x277aab0, 0x2a70bb8, 0x0, 0x277ab20, 0x0, 0x29c4e88) XMLScanner::scanContent(0x277aab0, 0x1, 0x1, 0x56ff9c, 0x56ffc4, 0x55efb5) XMLScanner::scanStartTagNS(0x277aab0, 0xffbe847f, 0x20ea1b0, 0x5516b8, 0x0, 0x1) SchemaValidator::validateElement(0x2551bb0, 0x20ea1b0, 0x0, 0x20ea1b0, 0x25530a0, 0x0) I am using Xerces V 1.5.1 on sun4_solaris. I am calling XMLPlatformUtils::Initialize(); only once in the application [ because of the know bug in this version ] I suspect the following + I must be missing some statics ( either with thee parser instance OR related to Initialize() OR with the application ] after the exception is thrown, which for the next call to the parse() method is clashing. Any clues / hints are welcome. Thanks, Shirish --- Christian Sell <christian.sell@netcologne.de> wrote: > this may be dependent on the XML processor you are > using. For Xerces, I > think I can say that if you provide a schemaLocation > attribute, it will > be handed to the registered EntityResolver. The ER > can fetch the schema > from wherever it deems appropriate (even generate) > > Shirish Kulkarni wrote: > > Hi, > > > > I would like to locate the schema's at a central > > location on a Unix machine and be able to access > them > > - irrespective of the run-directory of the parser > > application > > > > Thus the access is through local machine / nfs on > Unix > > machines. > > > > For DTD's, we have to use EntityResolver to point > to > > the application controlled path to search for the > > DTD's for Xerces parser. > > > > I have the following questions - > > > > + Do Schema require the EntityResolver to be used > ? > > + Can Schema's be accessible \without/ httpd > running > > on the serving machine ? > > > > Any guidance will be appreciated. > > > > Thanks, > > Shirish > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Web Hosting - establish your business > online > > http://webhosting.yahoo.com > > > > > > __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com
Received on Wednesday, 12 March 2003 10:40:34 UTC