[jdom-interest] Ignoring undeclared entities?

jmt jmt at dxdydz.net
Tue Dec 21 01:48:15 PST 2004

I have not checked this, but, if you use xerces as sax parser (which is 
usually the default parser), you can disabled loading of external entities :


because this feature is enabled by default.

Hope this helps,


On Tuesday 21 December 2004 10:08, george georgovassilis wrote:
> Dear All
> I'm using jdom 0.9 and have sometimes to parse XML with undeclared
> entities. The parsing aborts then with an exception which is also a
> fatal error (so I can't just ignore it by implementing my own lenient
> ErrorHandler). Since there is no way I can get hold of the missing DTDs
> anyway, I was wondering if the SaxBuilder (or whichever part I am
> missing here) can be instructed not to resolve entities it doesn't know?
> Thanks in advance
> George Georgovassilis
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list