Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Path question

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: David Forslund <forslund AT mail.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Path question
  • Date: Wed, 19 Oct 2005 22:28:14 -0600

I'm trying to use XOM in a webapp and all ServletContext.getRealPath() to get the path to an XML file to process. I'm doing this on windows. It yields a path with "\" in it as is normal on windoes. But I get the following error:
nu.xom.ParsingException: Path contains invalid character: \ in C:\Java\resin-2.1.9\webapps\b-safer\WEB-INF/classes/xcode/symptoms.xml
at nu.xom.Builder.build(Builder.java:1170)
at nu.xom.Builder.build(Builder.java:562)
at gov.lanl.Utility.xml.Resource.setXMLDOMSource(Resource.java:121)

I'm using 1.1b5 of XOM. I'm not sure how to fix this problem.

thanks,

Dave






Archive powered by MHonArc 2.6.24.

Top of Page