http://stackoverflow.com/questions/14359658/get-xml-attribute-using-simplexml-load-string 问: I am using a few third party APIs which returns errors via xml in the following form: <xml> <status>0</status> <error code="111">
这是一个测试节点类容的获取 这是控制台代码部分 注意的应用文件 :using.system.Xml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace TestXmlsa { class Program { static void Main(string[] args) { XmlDocument doc = new Xm