//XmlDocument doc = new XmlDocument(); //doc.Load("teacherVR.xml"); //XmlElement root = doc.DocumentElement;//获取根节点 //XmlNode transfrom = root.SelectSingleNode("/root/componentInformation/transform"); //XmlNode xn = root.SelectSingleNode("/root/componentInformation/transform[@ID=‘2‘]");
原文:http://www.cnblogs.com/mayichen0823/p/6765096.html