[XOM-interest] Suppressing "[Fatal Error] :1:1: Premature end of file."
Tatu Saloranta
cowtowncoder at yahoo.com
Mon Oct 27 12:25:41 EDT 2008
--- 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 +-
More information about the XOM-interest
mailing list