既然是自动生成的,那应该是配置生成规则的时候配错了吧,如果纯是对xml文件操作的话,我试过写回的
Document document = builder.build(path);
Element stu = document.getRootElement();...XMLOutputter xmlOut = new XMLOutputter(Format.getPrettyFormat());
xmlOut.output(document, System.out);
FileWriter writer = new FileWriter(path);
xmlOut.output(document, writer);
writer.close();
Document document = builder.build(path);
Element stu = document.getRootElement();...XMLOutputter xmlOut = new XMLOutputter(Format.getPrettyFormat());
xmlOut.output(document, System.out);
FileWriter writer = new FileWriter(path);
xmlOut.output(document, writer);
writer.close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货