且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要C#XML帮助

更新时间: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;