C# 讀取xml數據和vaule;
using System.Xml;
XmlTextReader reader = new XmlTextReader("C://test.xml");
reader.Read();
string content;
while (reader.Read())
{
reader.MoveToContent();
if (reader.NodeType == System.Xml.XmlNodeType.Element && "leftFrontNo" == reader.LocalName)
{
content = reader.ReadString();
MessageBox.Show(content);
}
}