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: luca <passani AT eunet.no>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] URI
  • Date: Mon, 05 Apr 2004 11:01:01 +0200


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?

thanks

luca

Elliotte Rusty Harold wrote:
At 12:52 AM +0200 4/5/04, luca wrote:

Hallo,

I have this line in my servlet:

String path = "file:///C:/Program Files/Apache Group/Tomcat 4.1/webapps/wurfl/WEB-INF/wurfl.xml";
ObjectsManager.getWurflInstance(path);


Your path variable is not a legal URI. URIs may not contain an unescaped space. If you escape the space and rewrite your path as "file:///C:/Program Files/Apache Group/Tomcat%204.1/webapps/wurfl/WEB-INF/wurfl.xml" it should work.






Archive powered by MHonArc 2.6.24.

Top of Page