Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Serializer.lineSeparator not preserved

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Serializer.lineSeparator not preserved
  • Date: Thu, 24 Nov 2005 08:59:19 -0500

Wolfgang Hoschek wrote:
I think the last line of Serializer.setOutputStream(OutputStream out) should read

if (escaper.lineSeparatorSet) setLineSeparator(lineSeparator);

Right now, the lineSeparator would be set even though it wasn't set before, altering whitespace preserving semantics on subsequent output streams.


I think I've got a test for this one now. There may be a separate bug in the escaping of line separators as well. I'm working on that.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page