我有一个看起来像这样的 xml 文件:
<item>
<title>Lore ipsum etc </title>
<description>lorem ipsum etc etc</description>
<link>http://url.com</link>
<guid isPermaLink="false">http://url.com</guid>
<pubDate>Sat, 27 Apr 2013 14:56:50 GMT</pubDate>
<media:thumbnail width="66" height="49" url="http://url.com/media/images/67275000/jpg/_67275945_017846423.jpg" />
<media:thumbnail width="144" height="81" url="http://http://url.com/media/images/67276000/jpg/_67276200_017846423.jpg" />
</item>
<item>
<title>Lore ipsum etc </title>
<description>lorem ipsum etc etc</description>
<link>http://url.com</link>
<guid isPermaLink="false">http://url.com</guid>
<pubDate>Sat, 28 Apr 2013 14:56:50 GMT</pubDate>
<media:thumbnail width="66" height="49" url="http://url.com/media/images/67275000/jpg/_67275945_017846423.jpg" />
<media:thumbnail width="144" height="81" url="http://http://url.com/media/images/67276000/jpg/_67276200_017846423.jpg" />
</item>
该列表有大约 50 项。
我怎样才能给我的变量在<title>
,<description>
和.<link>
<PubDate>
到目前为止,我已经这样做了:
url = "http://url.com/file.xml";
XmlDocument doc = new XmlDocument();
doc.Load(url);
任何形式的帮助表示赞赏