Re: Digester Best Practice

2003-03-25 Thread Jeff Caddel
Ahhh. Ok. So something inside InputSource retains a reference to the base uri which keeps the parser happy. Makes perfect sense. We use xml includes a lot for our internal config files so knowing about this is a big time saver. Using the second form, with an InputSource, lets Struts say "t

Re: Digester Best Practice

2003-03-24 Thread Craig R. McClanahan
On Fri, 21 Mar 2003, Jeff Caddel wrote: > Date: Fri, 21 Mar 2003 05:38:54 -0700 > From: Jeff Caddel <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Digester Best Pr

Digester Best Practice

2003-03-21 Thread Jeff Caddel
Any reasons for one of these approaches being better/worse than the other? URL url = Thread.currentThread().getContextClassLoader().getResource("/WEB-INF/test.xml"); InputStream input = url.openStream(); Digester digester = new Digester(); digester.parse(input); URL url = Thread.currentThread(