2.3.0 is the most recent version of Xerces, so it's possible that an upgrade would fix the DTD problem, though I wouldn't bet on it.
Note that XMLString::transcode() allocates memory that you're not freeing. > -----Original Message----- > From: Denny Vrandecic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 3:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Non-local DTDs > > > Hi, > I'm using Xerces 2.2.0 under CygWin. Here's what the code > does, with X() > being XMLString::transcode(): > > .... > XMLPlatformUtils::Initialize(); > DOMParser p = > DOMImplementationRegistry::getDOMImplementation(X("LS"))->crea > teDOMBuilder(D > OMImplementationLS::MODE_SYNCHRONOUS, 0); > > > p->SetFeature(X("validate-if-schema"), true); > p->SetFeature(X("validation"), true); > p->SetFeature(X("datatype-normalization"), true); > ... setting errorHandler... > DOMDocument* doc = p->parseURI(X(filename)); > ... > > To repeat for convenience: > <!DOCTYPE gxl SYSTEM "http://www.gupro.de/GXL/gxl-1.0.dtd"> > That's what makes the parser throw a MalformedURLException. > > Did I set the features wrong? Am I using a dated version of Xerces? Or > where's the error? > > Thanks for your help and time, > Denny --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
