我会尝试这样的事情:
Xmldocument doc = new Xmldocument();doc.LoadXml("<reply success="true">More nodes go here</reply>");XmlElement root = doc.documentElement;string s = root.Attributes["success"].Value;
我会尝试这样的事情:
Xmldocument doc = new Xmldocument();doc.LoadXml("<reply success="true">More nodes go here</reply>");XmlElement root = doc.documentElement;string s = root.Attributes["success"].Value;