commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mart...@apache.org>
Subject Re: How skip dtd read by Digester?
Date Wed, 09 Nov 2005 17:45:29 GMT
On 11/9/05, Zsolt <zkoppanylist@intland.com> wrote:
>
> My application (because of demo) must also run without internet access.
>
> Right now I get UnknownHostException because Digester finds DTD in the xml
> file. How can I disabled that?


Rather than disable it, you can register a local copy with the Digester so
that it doesn't try to look it up on the net. See the Javadocs for
Digester.register(), here:

http://jakarta.apache.org/commons/digester/commons-digester-1.7/docs/api/org/apache/commons/digester/Digester.html#register(java.lang.String,%20java.lang.String)

--
Martin Cooper


The DTD is not needed here.
>
>
> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
> "http://www. ibatis.com/dtd/sql-map-config-2.dtd<http://ibatis.com/dtd/sql-map-config-2.dtd>
> ">
>
> Zsolt
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message