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: "Bradley S. Huffman" <hip AT cs.okstate.edu>, 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: Tue, 8 Jul 2003 23:04:14 -0400

At 6:41 PM -0500 7/8/03, Bradley S. Huffman wrote:

My problem is I'm learning toward the position that if I serialize a XOM or
JDOM tree to text, I should be able to run it through a XML parser and
XOMHandler/SAXHandler and get the same XOM or JDOM tree where all attribute
values and text nodes will be the same character for character as the
original. It just hits my Okie simplicity as the right thing to do. I'm not
sure if automatically converting the line breaks will do that. By always
escaping all attribute values and text nodes so the re-parse will recreate
the original character, I'm pretty sure it will.

I think I agree with this, though it may be uglier than the current default output. Nothing will be automatically converted. Conversion will take place if and only if the user tells the serializer to change the white space in some way.
--

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