清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
try { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(@"types.xml"); XmlElement xmlRoot = xmlDoc.DocumentElement; foreach (XmlNode node in xmlRoot.ChildNodes) { Type type = new Type(); string num = node["num"].InnerText; string desc = node["desc"].InnerText; string content = node["content"].InnerXml; } } catch { }