commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
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 xml.apache.org 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.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message