You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Zsolt <zk...@intland.com> on 2005/11/09 18:35:06 UTC
How skip dtd read by Digester?
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?
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">
Zsolt
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: How skip dtd read by Digester?
Posted by Julián García <jg...@unionsoluciones.com.co>.
Please prefix your messages
Martin Cooper wrote:
> On 11/9/05, Zsolt <zk...@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
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
RE: How skip dtd read by Digester?
Posted by Zsolt <zk...@intland.com>.
Thank You.
zsolt
>-----Original Message-----
>From: Simon Kitching [mailto:skitching@apache.org]
>Sent: Thursday, November 10, 2005 9:39 AM
>To: Jakarta Commons Users List
>Subject: RE: How skip dtd read by Digester?
>
>On Thu, 2005-11-10 at 08:34 +0100, Zsolt wrote:
>> Can you provide me an example please?
>digester.register("--/some public id", "file:///var/dtds/my-dtd.dtd");
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
RE: How skip dtd read by Digester?
Posted by Simon Kitching <sk...@apache.org>.
On Thu, 2005-11-10 at 08:34 +0100, Zsolt wrote:
> Can you provide me an example please?
digester.register("--/some public id", "file:///var/dtds/my-dtd.dtd");
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
RE: How skip dtd read by Digester?
Posted by Zsolt <zk...@intland.com>.
Can you provide me an example please?
Zsolt
>-----Original Message-----
>From: mfncooper@gmail.com [mailto:mfncooper@gmail.com] On Behalf Of Martin
>Cooper
>Sent: Wednesday, November 09, 2005 6:45 PM
>To: Jakarta Commons Users List
>Subject: Re: How skip dtd read by Digester?
>
>On 11/9/05, Zsolt <zk...@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.S
>tring,%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
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: How skip dtd read by Digester?
Posted by Martin Cooper <ma...@apache.org>.
On 11/9/05, Zsolt <zk...@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
>
>
RE: How skip dtd read by Digester?
Posted by Alfredo Ledezma Melendez <al...@mail.telcel.com>.
You can use SYSTEM on DOCTYPE tag.
<!DOCTYPE sqlMapConfig SYSTEM "myDTD.dtd">
Cheers
____________________________________________
Alfredo Ledezma Melendez.
Gerencia de Sistemas CRM
Consultor Externo de Sistemas de Atencion a Clientes
RadioMovil DIPSA, S. A. de C. V.
Ejercito Nacional No. 488, Col. Chapultepec Morales,
C.P. 11570 Mexico D.F.
-----Original Message-----
From: Zsolt [mailto:zkoppanylist@intland.com]
Sent: Wednesday, November 09, 2005 11:35 AM
To: 'Jakarta Commons Users List'
Subject: How skip dtd read by Digester?
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?
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">
Zsolt
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta dirigido; contiene informacion estrictamente confidencial y legalmente protegida, cuya divulgacion es sancionada por la ley. Si el lector de este mensaje no es a quien esta dirigido, ni se trata del empleado o agente responsable de esta informacion, se le notifica por medio del presente, que su reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio este comunicado por error, favor de notificarlo inmediatamente al remitente y destruir el mensaje. Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Radiomovil Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos.
This message is for the sole use of the person or entity to whom it is being sent. Therefore, it contains strictly confidential and legally protected material whose disclosure is subject to penalty by law. If the person reading this message is not the one to whom it is being sent and/or is not an employee or the responsible agent for this information, this person is herein notified that any unauthorized dissemination, distribution or copying of the materials included in this facsimile is strictly prohibited. If you received this document by mistake please notify immediately to the subscriber and destroy the message. Any opinions contained in this e-mail are those of the author of the message and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries companies. No part of this message or attachments may be used or reproduced in any manner whatsoever.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org