Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] loading xml as a resource

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: teknokrat <teknokrat AT yahoo.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] loading xml as a resource
  • Date: Tue, 17 Jan 2006 18:22:55 +0000

I am trying to parse an xml file in my jar using

builder.build(getClass().getResourceAsStream("myfile.xml"));

I get a nu.xom.ParsingException: Premature end of file.

If I read the file into a string and pass it to the builder everything works OK. Is this how its meant to work or am I doing something silly?

thank you





Archive powered by MHonArc 2.6.24.

Top of Page