xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Jason Bennett <jasonab AT acm.org>, XOM-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] File path w/space
- Date: Thu, 16 Jan 2003 10:24:41 -0500
At 12:04 AM -0500 1/16/03, Jason Bennett wrote:
I'm trying to parse an XML file, by calling the build method in Builder, passing a File object.
If, however, I pass a file object where the complete filename includes a directory name with a space, XOM throws an exception:
nu.xom.MalformedURIException: URIs cannot contain 0x20
at nu.xom.Verifier.checkURI(Verifier.java:201)
Now, I understand why URIs cannot have spaces, and I figure that I could pass a stream instead of a File. Am I just not allowed to pass a File object if that object could have a space in the path? I don't know of any way to URI'ize a File object.
Assuming I can verify this, I'd call it a bug in XOM. Laurent's suggested fix is likely correct. It should be easy enough to make.
There've been several easy fixes posted here in the last couple of days. I'm off to Germany next week for OOP 2003, but once I get back I'll roll these out for a 1.0d9 toward the end of the month.
Then next month, I'll post my Todo list, and try to make some final decisions on the not so obvious issues, before we do an API freeze.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
-
[XOM-interest] File path w/space,
Jason Bennett, 01/16/2003
-
Re: [XOM-interest] File path w/space,
Laurent Bihanic, 01/16/2003
- Re: [XOM-interest] File path w/space, Jason Bennett, 01/17/2003
- Re: [XOM-interest] File path w/space, Elliotte Rusty Harold, 01/16/2003
-
Re: [XOM-interest] File path w/space,
Laurent Bihanic, 01/16/2003
Archive powered by MHonArc 2.6.24.