Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 61952 invoked from network); 16 Jun 2005 04:17:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 04:17:53 -0000 Received: (qmail 57462 invoked by uid 500); 16 Jun 2005 04:17:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 57442 invoked by uid 500); 16 Jun 2005 04:17:45 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 57390 invoked by uid 99); 16 Jun 2005 04:17:45 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtpgw.ussouth.net (HELO smtpgw01.incomm.LOCAL) (66.147.173.58) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Jun 2005 21:17:43 -0700 Received: from mail.us-south.net ([10.2.19.13]) by smtpgw01.incomm.LOCAL with Microsoft SMTPSVC(6.0.3790.211); Thu, 16 Jun 2005 00:17:11 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: [Digester] How to digester.register(String publicId,String entityURL) for local dtd file? Date: Thu, 16 Jun 2005 00:13:52 -0400 Message-ID: <44FB4F89BC3EB24C8CD1BC76E00C70EB08DA8A1D@exchange.uss.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Digester] How to digester.register(String publicId,String entityURL) for local dtd file? Thread-Index: AcVyKc1Ug929YOvgS+i7AGGr8Abg3Q== From: "Jon Steelman" To: "Jakarta Commons Users List" X-OriginalArrivalTime: 16 Jun 2005 04:17:11.0640 (UTC) FILETIME=[44AE6580:01C5722A] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Digester's documentation shows the following as an example of how to tell Digester where to find a local copy of a dtd, in this case a Struts config file: URL url =3D new = URL("/org/apache/struts/resources/struts-config_1_0.dtd"); digester.register("-//Apache Software Foundation//DTD Struts Configuration 1.0//EN", url.toString()); For a Struts file that begins with these 2 lines: Now, in my case, for an xml file that starts with these 2 lines: Apparently SYSTEM and PUBLIC differ and I'm not sure how to go about it in this case. How would you do the equivalent to tell Digester where to find the local copy? If I drop a copy of the dtd into the directory where Java is executing, it works, but I need to specify a different directory either relative or absolute. Thanks, Jon --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org