我有一个XML文件,像这样的:从XML元素中提取文本与属性
<root>
<image size = "small">www.linktosmallimage.jpg</image>
<image size = "large">www.linktolargeimage.jpg</image>
</root>
林提取这种方式,第一环节:
foreach (XmlElement x in xmlSource.SelectNodes("/root"))
{
string s = x.SelectSingleNode("image").InnerText;
}
的问题是:如何获得第二个链接? (大图像的链接,因为是我唯一需要的)?
预先感谢您。
完美!非常感谢! – 2010-10-20 00:35:38