[jdom-interest] (no subject)

Bradley S. Huffman hip at cs.okstate.edu
Thu Feb 26 20:19:25 PST 2004


"Jason Long" writes:

> Is there a way to take an element and wrap all content with <![CDATA[
> ]]> with JDOM?  The content is xhtml, but I need to treat it as CDATA
> for another application.

Create a Writer or OutputStream.
Output "<![CDATA[".
Use XMLOutputter.outputElementContent to output the element's content.
Output "]]>".

Brad



More information about the jdom-interest mailing list