Skip to Content.
Sympa Menu

xom-interest - Re: [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: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • To: cowwoc <cowwoc AT bbs.darktech.org>, elharo AT metalab.unc.edu
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Suppressing "[Fatal Error] :1:1: Premature end of file."
  • Date: Mon, 27 Oct 2008 09:25:41 -0700 (PDT)

--- On Fri, 10/24/08, Elliotte Harold <elharo AT metalab.unc.edu> wrote:

> From: Elliotte Harold <elharo AT metalab.unc.edu>
> Subject: Re: [XOM-interest] Suppressing "[Fatal Error] :1:1: Premature end
> of file."
> To: "cowwoc" <cowwoc AT bbs.darktech.org>
> Cc: xom-interest AT lists.ibiblio.org
> Date: Friday, October 24, 2008, 6:46 AM
> cowwoc wrote:
> > 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 may be wrong here, but could it be that Xerces has a default ErrorHandler
that prints out problem descriptions to stdout (or has hard-coded handling
for the case where no listener is registered)?

If so, you could replace it with an empty/dummy handler of your own to
resolve the problem.

-+ Tatu +-








Archive powered by MHonArc 2.6.24.

Top of Page