Can anyone give an example implementation of EntityResolver? I have tried to write my own, but I haven't got it to work. I always get an error saying that DTD file could not be found.
I would like my parser to be able to find DTD files without them having to necessarily be in the home directory or in the same directory as the XML files. -Corey -----Original Message----- From: Wendi Sisson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2001 1:13 PM To: [EMAIL PROTECTED] Subject: Re: Using EntityResolver for DTD file lookup We use a DTD name with no path, URL, etc., and our EntityResolver always gets called. You should not need to use an URL. Maybe if the parser finds the DTD in the default or current or home directory, it doesn't call the EntityResolver? Wendi Raja Nagendra Kumar wrote: > > Hi! > replace "marktcommentaar.dtd" with a URL such as > xyz://abc.com/marktcommentaar.dtd. > Regards, > Nagendra > ----- Original Message ----- > From: "Taras Tielkes" <[EMAIL PROTECTED]> > To: "Xerces-J-User (E-mail)" <[EMAIL PROTECTED]> > Sent: Friday, November 23, 2001 9:58 PM > Subject: Using EntityResolver for DTD file lookup > > > Hi, > > > > I'd like to use the EntityResolver interface to fetch DTD files form a > > specific directory. > > > > My xml files look like: > > > > <?xml version="1.0" encoding="ISO-8859-1" ?> > > <!DOCTYPE iris-research SYSTEM "marktcommentaar.dtd"> > > <iris-research> > > ... > > > > I'm registering my implementation with setEntityResolver(), but I don't > get > > called. > > > > Any suggestions? > > > > Thanks, > > > > // tt > > > > --------------------------------------------------------------------- > > 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] -- Wendi Sisson Systems Programmer International Trade Development FedEx Services (901) 263-6695 --------------------------------------------------------------------- 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]
