JDOM b10 has much improved XML formatting - it makes it work switching.
These clips should work for you ...
import org.jdom.output .XMLOutputter;
import org.jdom.output .Format;
try {
XMLOutputter out= new XMLOutputter(Fo rmat.getPrettyF ormat());
out.output( elm , System.out);
} catch ( java.io.IOExcep tion ex ) {
System.out.prin tln("whatever") ;
}
be******@hotmai l.com (Bernd Oninger) wrote in message news:<ca******* ******@news.t-online.com>...
When I compile my java source with jdom b10 the compiler tells me that the instrcution
XMLOutputter outputter = new XMLOutputter(" ", true);
Outputter.outpu t(doc, new FileWriter("t.x ml"));
is deprecated.
What si the appropriate replacement of this deprecated command ?
Bernd