[jdom-interest] Any method to clear contents of a JDOM tree from a particular no de down ?

Elliotte Rusty Harold elharo at metalab.unc.edu
Fri May 17 05:21:01 PDT 2002


At 2:43 PM +0100 5/16/02, Byrne, Padraig (Padraig) wrote:
>I use JDOM to store status information in the background in my application
>& I need to reset particular parts of JDOM tree to empty at certain times.
>
>I am writing something to iterate through children & clear contents
>but it would have been nice if JDOM had a standard method available 
>to perform this task.

Try element.setContent(null)

-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/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.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list