Skip to Content.
Sympa Menu

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

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: Arjan Huijzer <huijzer AT gmail.com>
  • Cc: XOM-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] CDATA sections
  • Date: Tue, 04 Jan 2005 10:06:14 -0500

Arjan Huijzer wrote:

Hi,

<article>
<content>
<![CDATA[
<title>myTitle</title>
<para>Some Text</para>
]]>
</content>
</article>

I was wondering what the best way was to generate the CDATA section with XOM.


It can't be done because you don't need to do it. Just make the text nodes containing the content you want it to contain and XOM will serialize it appropriately.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page