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: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <jcowan AT reutershealth.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Extra white space escaping to preserve the infoset
  • Date: Wed, 9 Jul 2003 16:28:36 -0400

At 3:42 PM -0400 7/9/03, John Cowan wrote:
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.


d18 is doing everything except 1 and 2. d19 will do all of this.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page