用于获取API特定数据的C#XmlDocument?

用于获取API特定数据的C#XmlDocument?,c#,api,xpath,xmldocument,xmlnode,C#,Api,Xpath,Xmldocument,Xmlnode,我正在尝试获取以下内容中某个属性的特定值: 但当我运行它时,我会收到以下消息作为回报: System.Xml.XmlAttribute 我做错了什么?尝试更改: Console.WriteLine(root.ToString()); 致: 希望这能有所帮助。效果很好。。多谢各位! System.Xml.XmlAttribute Console.WriteLine(root.ToString()); Console.WriteLine(root.Value);

我正在尝试获取以下内容中某个属性的特定值:

但当我运行它时,我会收到以下消息作为回报:

System.Xml.XmlAttribute
我做错了什么?

尝试更改:

Console.WriteLine(root.ToString());
致:


希望这能有所帮助。

效果很好。。多谢各位!
System.Xml.XmlAttribute
Console.WriteLine(root.ToString());
Console.WriteLine(root.Value);