RE: Attn Mike Kay (was using dom.Document as SAXON source)

Subject: RE: Attn Mike Kay (was using dom.Document as SAXON source)
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Tue, 21 Dec 1999 10:59:29 -0500
> > The other problem I've encountered is with XMLEmitter, which calls
> > close() on the Writer it is using inside the endDocument() method.
> > I'm not sure if this is a good idea, mainly because that class is
> > not responsible for calling open() (or init()) in the first place.
> > It also prevents people from outputting more data using that writer.
> 
> This area has been problematic for a while, I've never quite 
> sorted out a
> satisfactory approach that works well in all cases. If I 
> don't close the
> writer, it sometimes doesn't get flushed and output is 
> therefore lost. If I
> do close it, it stops it being used again, ...

Michael,

Perhaps XMLEmitter should call flush(), but not close().

Bob

------
Bob Lyons
EC Consultant
Unidex Inc.
1-732-975-9877
boblyons@xxxxxxxxxx
http://www.unidex.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread