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 <jcowan AT reutershealth.com>
  • 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 15:42:34 -0400

Elliotte Rusty Harold scripsit:

> The default will be for the serializer not to change the infoset in
> any way. However, if user tells the serializer to adjust the infoset
> as regards white space, then in my opinion they have said that white
> space is not significant.

Fair enough. In that case, the default mode should:

1) Escape all \r characters;
2) Escape \t and \n characters in attribute values;
3) Output \n characters in character content as the line terminator;
4) Escape all non-encodable characters;
5) Encode everything else.

Doing anything else will not preserve the infoset through a round trip.

--
What is the sound of Perl? Is it not the John Cowan
sound of a [Ww]all that people have stopped jcowan AT reutershealth.com
banging their head against? --Larry http://www.ccil.org/~cowan




Archive powered by MHonArc 2.6.24.

Top of Page