Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Why won't XOM let you create a CDATA section?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Lance Eason <leason AT betweenmarkets.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Why won't XOM let you create a CDATA section?
  • Date: Tue, 22 Aug 2006 11:34:17 -0400

Lance Eason wrote:

So why are CDATA sections so verboten in XOM?

Because they are persistently misused and misunderstood. If you let people control them, then they use them. For example, unit tests should not break if a process begins emitting escaped characters instead of a CDATA section or vice versa. Such a unit test should be refactored, not catered to.

XOM does the best job it can to manage human legibility (by internally preserving CDATA sections where possible).

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page