XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.Load("路径");
XmlElement element = xmlDoc.SelectSingleNode("//file") as XmlElement; //节点名称
Console.WriteLine(element.Attributes[0].Value.ToString());
XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.Load("路径");
XmlElement element = xmlDoc.SelectSingleNode("//file") as XmlElement; //节点名称
Console.WriteLine(element.Attributes[0].Value.ToString());