How to put the content of a JDom document into a File object?

79 Views Asked by At

if I have a JDom Document as this one:

Document configDocument = configHelper.getConfigDocument();

What can I do to put its content into a File object?

Tnx

Andrea

1

There are 1 best solutions below

0
On

Use an XMLOutputer with a FileOutputStream.