Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XML-heading causes IOException[Scanned]

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: MULS PATRICK <patrick.muls AT datassur.be>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XML-heading causes IOException[Scanned]
  • Date: Sat, 23 Aug 2003 10:39:31 -0400

I've looked into this a little more. I'm pretty certain this is caused by a bug in how Java resolves Files into URLs on Windows. The problem does not occur on Unix. I can probably work around it in the next release of XOM. In the meantime, instead of calling builder.build(flXml) in lezenXML try this instead:

builder.build(flXml.toURL().toExternalForm())

In my tests this works. At least, I think this works. It generates a lot of output in Dutch, and no exceptions. I assume that's what's expected.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page