asp.net 对xml文件的读写,添加,修改,删除操作
下面有代码调试正确

asp.net 操作xmlusing System;
asp.net 操作xml
using System.Collections;
asp.net 操作xml
using System.ComponentModel;
asp.net 操作xml
using System.Data;
asp.net 操作xml
using System.Drawing;
asp.net 操作xml
using System.Web;
asp.net 操作xml
using System.Web.SessionState;
asp.net 操作xml
using System.Web.UI;
asp.net 操作xml
using System.Web.UI.WebControls;
asp.net 操作xml
using System.Web.UI.HtmlControls;
asp.net 操作xml
using System.Xml;
asp.net 操作xml
private XmlDocument xmlDoc;
asp.net 操作xml
asp.net 操作xml        
//load xml file
asp.net 操作xml
        private void LoadXml()
    


Xml的样式:

asp.net 操作xml<?xml version="1.0" encoding="gb2312"?>
asp.net 操作xml
<user>
asp.net 操作xml  
<person>
asp.net 操作xml  
</person>
asp.net 操作xml  
<person name="风拉" sex="男" age="25">
asp.net 操作xml    
<pass>123</pass>
asp.net 操作xml    
<Address>大明</Address>
asp.net 操作xml  
</person>
asp.net 操作xml  
<person name="风云" sex="女" age="25">
asp.net 操作xml    
<pass>123</pass>
asp.net 操作xml    
<Address>昆明</Address>
asp.net 操作xml  
</person>
asp.net 操作xml
</user>

相关文章:

  • 2022-02-14
  • 2021-11-03
  • 2022-01-02
  • 2021-12-11
  • 2022-03-08
  • 2022-12-23
  • 2022-01-17
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-10-24
  • 2021-09-08
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案