[jdom-interest] Problem with save sub element
sam sam
samitou at hotmail.com
Tue Sep 12 11:48:51 PDT 2006
Hi,
I worked with JDOM und like it very well, but I have a problem with saving
into xml the sub element.
I can add an Element and save it but when I add sub element it will saved as
an Element.
Please help me!!
Hier is a part of my code that save the xml file:
public void save(String filename)
{
try
{
XMLOutputter out = new
XMLOutputter(org.jdom.output.Format.getPrettyFormat());
FileWriter writer = new FileWriter(filename);
out.toString();
out.output(document, writer);
writer.flush();
writer.close();
}
catch (java.io.IOException e){}
}
Thank you
Sam
More information about the jdom-interest
mailing list