序列化对象 public class People { [XmlAttribute("NAME")] public string Name { set; get; } [XmlAttribute("AGE")] public int Age { set; get; } } [XmlRoot("Root")] public class Student : People { [XmlElement("CLASS")] public…
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">…