Jframe xml 请问下 删除xml 怎么做呢 ? 我用的是jframe 做的 想做个删除xml 文件的功能希望大家给点代码 提示下 谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class XmlConfigTemplate extends DatabaseConfig{ public XmlConfigTemplate loadFromXmlFile(File configFile) throws SAXException, IOException, DocumentException, TagNotFoundException{ XmlFileUtil xmlFile = new XmlFileUtil(configFile); Document doc = xmlFile.getDoc(false, null); this.configure(doc.getRootElement()); return this; } public void storeToXmlFile(File configFile) throws IOException{ Element tempEle = this.toElement(null); String xml = XmlFileUtil.formatXml(tempEle, "utf-8"); FileUtils.writeStringToFile(configFile, xml, "utf-8"); } public void deleteToXmlFile(File configFile) throws IOException{ }我的 deleteToXmlFile 我应该怎么写呢 我要删除的文件名字 我能取到 但是不知道怎么写删除 dao方法怎么实现分组查询 急求 在线等 请问我的一个时间为 13708446212 ,如何转换成年月日时分秒 servlet问题 在MyEclipse环境中如何搭建一个struts+spring+hibernate的框架??? 有关java编码,懂了的就帮我辨别一下,谢谢了 有好人提供一点比较好的网站模版吧,谢谢啦! java读取word模板,并生成word预览 了解 jstl 请进 关于jsp页面处理后刷新的问题 谁有带有编辑html功能,上传图片功能的jsp页面?多谢多谢。 一个页面的逻辑问题。不要代码,只要思路.希望高手来讨论一下。 程序如何国际化
XmlFileUtil xmlFile = new XmlFileUtil(configFile);
Document doc = xmlFile.getDoc(false, null);
this.configure(doc.getRootElement());
return this;
} public void storeToXmlFile(File configFile) throws IOException{
Element tempEle = this.toElement(null);
String xml = XmlFileUtil.formatXml(tempEle, "utf-8");
FileUtils.writeStringToFile(configFile, xml, "utf-8");
}
public void deleteToXmlFile(File configFile) throws IOException{
}我的 deleteToXmlFile 我应该怎么写呢 我要删除的文件名字 我能取到 但是不知道怎么写删除