Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] CDATA handling

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 (XOM-interest)
  • Subject: Re: [XOM-interest] CDATA handling
  • Date: Thu, 19 Sep 2002 13:26:21 -0400

At 11:34 AM -0400 9/19/02, John Cowan wrote:

Fair enough. For documents that are meant to be readable, though, it might
make sense for at least some whole elements (ones with embedded languages
like "script" or "style") to be output as CDATA sections. How about
methods Serializer.writeAsCDATA(Text|Element), which would not affect the core
model?


Thatt's certainly a possibility. It does not offend my sense of aesthetics. I think the Apache org.apache.xml.serialize package uses something like this. I didn't do it yet, mostly to keep things simple. I may actually hold off on implementing it until somebody needs to use it and asks for it. :-)
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page