Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Extra white space escaping to preserve the infoset

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT cs.okstate.edu>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Extra white space escaping to preserve the infoset
  • Date: Wed, 09 Jul 2003 16:40:17 -0500

Elliotte Rusty Harold writes:

> Here's a question: why would a user set the line terminator at all if
> they do not want the serializer to adjust the white space? Without
> also calling setMaxLength or setIndent, setLineSeparator is very
> close to a no-op.

The only reason I can come up with is so you can view your document
in a brain-dead editor that cann't be switch from a single \n and to
\r\n to get a line break.

But then again, I think you could deprecate setLineSeparator and always
use \n. If someone needed to convert all \n to \r\n, they could always write
a simple FilteredOutputStream and pass a instance of it to Serializer.

Brad




Archive powered by MHonArc 2.6.24.

Top of Page