With
TXMLObjectIterator ti.next().writeTo (System.out) ;
I can I see the the xml tree in the eclipse console, but how can I see the xml tree from the type Document or Element ?
With
TXMLObjectIterator ti.next().writeTo (System.out) ;
I can I see the the xml tree in the eclipse console, but how can I see the xml tree from the type Document or Element ?
I got it for Document:
import org.jdom.output.*;
XMLOutputter outputter = new XMLOutputter(" ", true);
outputter.output(doc, System.out);