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(Format.getPrettyFormat());
out.output( elm , System.out);
} catch ( java.io.IOException ex ) {
System.out.println("whatever");
}
be******@hotmail.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.output(doc, new FileWriter("t.xml"));
is deprecated.
What si the appropriate replacement of this deprecated command ?
Bernd