[jdom-interest] Missing removeContent() methods

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu May 2 09:03:51 PDT 2002


By my reckoning the Element class is missing two removeContent() methods 
it should logically have:

public boolean removeContent()

  removes all content from the element

public boolean removeContent(List list)

 removes everything in the list from the element

We do have equivalent versions of removeChildren() but these only 
operate on child elements, not all possible kinds of children.

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|           The XML Bible, 2nd Edition (IDG Books, 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