string uid = "";
string uname = "";
string upass = "";
string sql = "";
#region 读取XML数据并写入数据库
/*XmlDocument doc = new XmlDocument();//创建XML操作对象
doc.Load(@"F:\Reader.xml");//加载xml文件的路径
//doc.DocumentElement 是获取XML的根节点
XmlNodeList UserNodes = doc.DocumentElement.ChildNodes;//获取根节点下的子节点,注意是集合,所以返回的是所有子节点
foreach (var item in UserNodes)
{
//读取每一个子节点下面的属性值
XmlElement userEle = (XmlElement)item;//将类型强制转换为XmlElement
uid = userEle.GetAttribute("id");
XmlNode userNameNode = userEle.SelectSingleNode("UserName");
uname = userNameNode.InnerText;
XmlNode userP
string uname = "";
string upass = "";
string sql = "";
#region 读取XML数据并写入数据库
/*XmlDocument doc = new XmlDocument();//创建XML操作对象
doc.Load(@"F:\Reader.xml");//加载xml文件的路径
//doc.DocumentElement 是获取XML的根节点
XmlNodeList UserNodes = doc.DocumentElement.ChildNodes;//获取根节点下的子节点,注意是集合,所以返回的是所有子节点
foreach (var item in UserNodes)
{
//读取每一个子节点下面的属性值
XmlElement userEle = (XmlElement)item;//将类型强制转换为XmlElement
uid = userEle.GetAttribute("id");
XmlNode userNameNode = userEle.SelectSingleNode("UserName");
uname = userNameNode.InnerText;
XmlNode userP