[jdom-interest] DOMOutputter output-methods question!
Elliotte Rusty Harold
elharo at metalab.unc.edu
Wed May 15 12:28:55 PDT 2002
As I said I'm new to that but I've seen a little discussion about the method :
org.w3c.dom.Element DOMOutputter.output(org.jdom.Element element)
That method's fundamentally flawed at the signature level. Don't use
it. I think it's deprecated. If it isn't it should be.
The basic problem is that DOM cannot create an Element that is not
part of a Document. All Element objects have exactly one Document
object that both creates and holds them. They cannot be separated
from the Document that initially creates them.
--
+-----------------------+------------------------+-------------------+
| 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