調査後にノードの値を取得しようとしているこのxmlがあります.APIからの応答が私に与えていた<ErrorCode>
不要なものをすべて消去するため、XDocumentを使用する方が簡単であることがわかりまし\r\n
た..しかし、今は方法がわかりませんXDocument を使用してその値を取得する
<PlatformResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://platform.intuit.com/api/v1">
<ErrorMessage>OAuth Token rejected</ErrorMessage>
<ErrorCode>270</ErrorCode>
<ServerTime>2012-06-19T03:53:34.4558857Z</ServerTime>
</PlatformResponse>
この呼び出しを利用して値を取得できるようにしたい
XDocument xmlResponse = XDocument.Parse(response);
XmlDocument を実行しているときに XML をクリーンアップしないため、XmlDocument を使用できません XDocument
ありがとうございました