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: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Extra white space escaping to preserve the infoset
  • Date: Thu, 3 Jul 2003 13:29:35 -0400

At 6:28 PM +0200 7/3/03, Laurent Bihanic wrote:

+1. XOM should also ensure safe roundtrip for such documents. Maybe this would require changes in the builder too.


No, the builder is fine. It just sits on top of SAX, and by default preserves all white space SAX gives it. Provided you're using a conformant SAX parser such as Xerces, then there's no issue. (Of course, a parser that does not properly handle white space such as Crimson can cause issues, but there's not much I can do about that.)
--

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