[jdom-interest] Replace existing CDATA

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat Feb 16 14:18:01 PST 2002


At 4:10 PM -0600 2/16/02, Jason Long wrote:
>Sorry my mistake.  The actual XML is as follows:
>
><name num="1"><![CDATA[Bob Marley & The Wailers - Legend - 02 - No Woman No
>Cry.mp3]]></name>
>

In that case the simplest way is probably

eltName.setText(eltName.getText());

-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list