与XML的操作, xml文档怎么会保持不变呢?? 不懂 在最后调用 xDoc.Save(txtDir.Text); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你要把修改的属性写回去啊:用XmlDocument的WriteTo()方法public static void WriteXml( XmlDocument doc ){ XmlTextWriter writer = new XmlTextWriter(Console.Out); writer.Formatting = Formatting.Indented; doc.WriteTo( writer ); writer.Flush(); Console.WriteLine();} 急!程序注册为windows服务后,File.copy拷贝到远程共享目录提示拒绝访问 高分求救!!!C#调用DLL,出现“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。” C#Barcode问题 关于datagrid 如何获得上传图片的尺寸(长*宽) 树型节点关系数据库表 导出到treeView WCF学习中碰到的问题 请教用什么控件能做出这种结构书效果 线程名字问题~ petshop的下载地址? 初来报道,求点教材 怎么才能把一个编译好的DLL添加到Assembly目录下
用XmlDocument的WriteTo()方法
public static void WriteXml( XmlDocument doc )
{
XmlTextWriter writer = new XmlTextWriter(Console.Out);
writer.Formatting = Formatting.Indented;
doc.WriteTo( writer );
writer.Flush();
Console.WriteLine();
}