Element element = new Element("root");
Document document = new Document(element);
document will auto generate <?xml version="1.0"?>
<?xml version="1.0"?>
<root>
</root>
How to set encoding, standalone into xml declaration use XOM ? I expect:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<root>
</root>