Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] URI

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: luca <passani AT eunet.no>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] URI
  • Date: Mon, 5 Apr 2004 08:58:11 -0400

At 11:01 AM +0200 4/5/04, luca wrote:
thanks, is there an API to do the encoding?

I reported the expanded path, but my real problem is that
I am building a web-application
and I'll need to read my config XML file out of /WEB-INF/,
which I can achieve through ServletContext().getRealPath("/WEB-INF/myfile.xml").

Also, will I need to append the "file:///" string at the beginning?

It depends on what ServletContext().getRealPath("/WEB-INF/myfile.xml") gives you. I'm not personally familiar with that method, but I suspect File.toURI() or File.toURL might be what you're looking for.

--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page