草庐IT

c# - 没有使用 XPath 从 Atom XML 文档中选择节点?

我正在尝试以编程方式解析Atom提要。我将原子XML下载为字符串。我可以将XML加载到XmlDocument中。但是,我无法使用XPath遍历文档。每当我尝试时,我都会得到null。我一直在使用这个Atom提要作为测试:http://steve-yegge.blogspot.com/feeds/posts/default调用SelectSingleNode()总是返回null,除非我使用“/”。这是我现在正在尝试的:using(WebClientwc=newWebClient()){stringxml=wc.DownloadString("http://steve-yegge.blog