[jdom-interest] detach() [eg]
Elliotte Rusty Harold
elharo at metalab.unc.edu
Wed May 2 06:51:15 PDT 2001
At 2:03 AM +0200 5/2/01, Noam Tamim wrote:
>As an alternative, how about a simple Element.moveTo(Element) and
>Element.moveTo(Document) ?
>
These wouldn't work because you need to specify where in the Element
or Document you're moving the element to. Children have order. You
could probably come up with some sort of index, but given the
possibility of deep descendants, I suspect it's more trouble than
it's worth.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible (IDG Books, 1999) |
| http://metalab.unc.edu/xml/books/bible/ |
| http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ |
| Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list