请问下 删除xml 怎么做呢 ?
 
我用的是jframe 做的 想做个删除xml 文件的功能希望大家给点代码  提示下 
谢谢了

解决方案 »

  1.   

    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 我应该怎么写呢 我要删除的文件名字 我能取到 但是不知道怎么写删除