Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Suppressing "[Fatal Error] :1:1: Premature end of file."

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: cowwoc <cowwoc AT bbs.darktech.org>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Suppressing "[Fatal Error] :1:1: Premature end of file."
  • Date: Thu, 23 Oct 2008 20:27:59 -0400

Hi,

If I invoke Builder.build(InputStream) on an empty stream the following gets outputted to stdout:

[Fatal Error] :1:1: Premature end of file.

I tracked this down to parser.parse(in) invoked by Builder.build(InputStream) but I could not trace further. Is there a way to suppress this error message (probably triggered by SAX not XOM)? Is it being sent to stdout or to the Java Logging API?

Thank you,
Gili




Archive powered by MHonArc 2.6.24.

Top of Page