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: John Cowan <cowan AT mercury.ccil.org>
  • 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, 9 Jul 2003 20:36:42 -0400

Elliotte Rusty Harold scripsit:

> Well, yes but unless you call setMaxLength() or setIndent() there'll
> be hardly any line breaks that weren't present in the source infoset.

None, I hope.

> If you need line breaks for the next process, you'll either call
> setMaxLength or put them into your infoset. And if you do put them in
> the infoset for their use as linebreaks in a non-XML aware downstream
> process, then you probably do want them converted to the current line
> separator.

Exactly. I write \n characters into my Text objects and then globally set
the Serializer's lineSeparator property to the platform line separator,
whatever it is. That way, the selfsame piece of code generates the
local standard kind of plain text on all platforms.

--
John Cowan jcowan AT reutershealth.com www.ccil.org/~cowan
www.reutershealth.com
I must confess that I have very little notion of what [s. 4 of the British
Trade Marks Act, 1938] is intended to convey, and particularly the sentence
of 253 words, as I make them, which constitutes sub-section 1. I doubt if
the entire statute book could be successfully searched for a sentence of
equal length which is of more fuliginous obscurity. --MacKinnon LJ, 1940




Archive powered by MHonArc 2.6.24.

Top of Page