截止2013.8最新的jdom包 XMLOutputterXMLOut=newXMLOutputter(); //输出user.xml文件; XMLOut.output(Doc,newFileOutputStream("user.xml")); } publicstaticvoidmain(String[]args){ try{ JavaWriteXmlj2x=newJavaWriteXml(); System.out.println("生成mxl文件..."); j2x.BuildXMLDoc(); }catch(Excep