using system; using system.io; using system.text; using system.diagnostics; using system.threading; using system.collections; using system.data; using system.xml; using system.management; using system.net;
================================================================= //xmlpath()为xml文件路径 config.xml using system; using system.text; using system.io; using system.xml;
public void readxml() { if (!file.exists(xmlpath())) { xmltextwriter xmlwriter = new xmltextwriter(xmlpath(), encoding.default);//创建一个xml文档 xmlwriter.formatting = formatting.indented; xmlwriter.writestartdocument(); xmlwriter.writestartelement( "myconfig ");