// Query xml (C #)
DataSet strxml = new DataSet ();
String path = "XMLFile1.xml ";
Strxml. ReadXml (Server. MapPath (path ));
This. TextBox1.Text = strxml. Tables [0]. Rows [0] ["sqlchaxun"]. ToString ();
This. TextBox2.Text = strxml. Tables [0]. Rows [1] ["sqlchaxun"]. ToString ();
// XMLFile1.xml
<? Xml version = "1.0" encoding = "UTF-8"?>
<SQL>
<Sqlyhtj>
<Sqlchaxun> People's Republic of China </sqlchaxun>
</Sqlyhtj>
<Sqlyhtj>
<Sqlchaxun> People's Republic of China 1 </sqlchaxun>
</Sqlyhtj>
</SQL>
// Modify xml (c #)
System. Xml. XmlDocument str1 = new System. Xml. XmlDocument ();
String path = "XMLFile1.xml ";
Str1.Load (Server. MapPath (path ));
System. Xml. XmlNode str2 = str1.SelectSingleNode ("/SQL/sqlyhtj/sqlchaxun ");
Str2.InnerText = this. TextBox1.Text. Trim ();
Str1.Save (Server. MapPath (path ));
// XMLFile1.xml
<? Xml version = "1.0" encoding = "UTF-8"?>
<SQL>
<Sqlyhtj>
<Sqlchaxun> yaomingchensss </sqlchaxun>
</Sqlyhtj>
</SQL>
// Read xml
// Xml
<? Xml version = "1.0" encoding = "UTF-8"?>
<Yhgl>
<Liebiaoxiang>
<ACTIDNAME> account </ACTIDNAME>
<ACTID> True </ACTID>
<USRNAMENAME> User Name </USRNAMENAME>
<USRNAME> True </USRNAME>