Re: SaxParser does not find a referenced DTD in Plugin [message #448710] |
Fri, 28 April 2006 14:56 |
Eclipse User |
|
|
|
Originally posted by: guillaume.helle.capgemini.com
i have the same problem but i can't access to the code because it's in a Jar
file...
I have created a library plugin with all my external jar but the problem
stay the same...
I have copied the DTD in my project : no effect...
an idea???
Thanks for your help!
Guillaume Helle
----- Original Message -----
From: "Cameron Fieber" <cfieber@gmail.com>
Newsgroups: eclipse.platform.rcp
Sent: Friday, February 24, 2006 10:33 PM
Subject: Re: SaxParser does not find a referenced DTD in Plugin
> SAXParser.getXMLReader().setEntityResolver should work
>
> Florian Laabs wrote:
> > First of all: Thanks for your quick answer.
> > But I do not know where to register the customized EntityResolver
> > because there is now such method neither in SAXParserFactory nor in
> > SAXParserFactory. As I found out the interface XMLReader offers such a
> > methode... but none of the two classes above implements this
Interface...
> >
> >
> > Cameron Fieber wrote:
> >
> >> You should implement org.xml.sax.EntityResolver
> >>
> >> Even if you get it running in the IDE (it is failing right now because
> >> SYSTEM "myDTD.dtd" is trying to resolve the file in the current
> >> working directory), when you export your plugin it won't be found.
> >>
> >> Create an EntityResolver that uses Bundle.getResource to return your
DTD.
> >>
|
|
|
Powered by
FUDForum. Page generated in 0.02897 seconds