org.jdom.output.XMLOutputter xmlOut;
document.setDocType( null ); // 不产生DocType PI
xmlOut = new org.jdom.output.XMLOutputter( " ", true, "GB2312" );
xmlOut.setTextNormalize( true ); FileOutputStream out = new FileOutputStream( name );
xmlOut.output( document, out );
out.close();
document.setDocType( null ); // 不产生DocType PI
xmlOut = new org.jdom.output.XMLOutputter( " ", true, "GB2312" );
xmlOut.setTextNormalize( true ); FileOutputStream out = new FileOutputStream( name );
xmlOut.output( document, out );
out.close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货