commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <>
Subject Re: [Digester] How to turn off parse's attempt to retrieve dtd?
Date Wed, 15 Jun 2005 09:37:00 GMT
> Thanks for the links Tom - I knew that there were open-source
> EntityResolver implementations that supported OASIS catalogs but didn't
> know one was at Apache!
> It should be noted, though, that writing a trivial EntityResolver to
> simply ignore external entities is only about 10 lines, which might be
> better than introducing an external dependency. Of course for more
> flexibility the classes look to be the way to go..

and about the reinvention of the wheel ;-)

> However ignoring the DTD can potentially change the meaning of a
> document, and so should only be done when the DTD is known to have
> nothing but validation rules in it.

The main reason for the xml-resolver component is AFAIK to allow the
bundling of the DTD while maintaining the full URL i.e. for offline
mode. At least that's what Forrest uses it for.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message