更新时间:2023-11-25 14:15:04
请参阅此 [^ ]线程.
首先使用LoadXml方法将Xml字符串读取到XmlDocument中,然后使用您的XmlDocument:
http://msdn.microsoft.com/en-us/library/system. xml.xmldocument.loadxml.aspx [ ^ ]
Read the Xml string into an XmlDocument using the LoadXml method first, then with your XmlDocument:
http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx[^]
var myNode = myXmlDoc.GetElementsByTagName("update_user_profile_response")[0];
var outcome = myNode.Attributes["outcome"].Value;