[jdom-interest] Ignoring undeclared entities?

george georgovassilis georgeg at open.gr
Tue Dec 21 01:55:31 PST 2004


Thank you Jmt

I actually came across this while searching for a solution, but when 
using most of the features described there I get something like an 
unknown feature exception...
G.

>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 :
>
>http://xml.apache.org/xerces2-j/features.html
>
>because this feature is enabled by default.
>
>Hope this helps,
>
>jmt
>
>
>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