posted 21 years ago
setDocType() doesn't work!
The result file hasn't any doctype!
Code like below:
JDOMSource source =
new JDOMSource(new org.jdom.Document(root).setDocType(docType));
StreamResult result = new StreamResult(file);
TransformerFactory.newInstance().newTransformer().transform(source,result);
//docType is not null and the root element don't have docType