Using TransformerFactory could help.
Transformer trnfrmr =
TransformerFactory.newInstance().newTransformer();
DOMSource domsrc = new DOMSource(svgDoc.getFirstChild());
StringWriter sw = new StringWriter();
StreamResult res = new StreamResult(sw);
trnfrmr.transform(domsrc, res);
br,
Nirmesh.
________________________________
From: Denis Weerasiri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 10:50 PM
To: [email protected]
Subject: Format the generated svg file using Batik
Is there a possible way in Batik to change the format of the svg file.
I tried SVG pretty printer. But it seems that it does not change the
format of the SVG file, it just print on the screen the formatted
output.
Please correct me if I'm wrong.
Thank you.