Last post Apr 13, 2012 06:05 AM by rameezshaikh9
Apr 11, 2012 07:03 AM|rameezshaikh9|LINK
I am using cricinfo rss feeds. it is on http://www.espncricinfo.com/rss/content/story/feeds/32498.rss
I am using this code to get values for Title and description. Title and description can be fetched by <%#XPath("title")%> or <%#XPath("description")%>. How can i get values of title or url tags which are under image tags? Image tag is on the same level of
title and description. I tried by using <%#XPath("image/url")%>. But, it is not showing any data. How to display these data???
Below is my code.
<asp:XmlDataSource ID="XmlDataSource" DataFile="http://www.espncricinfo.com/rss/content/story/feeds/32498.rss"
<asp:DataList ID="DataList" runat="server" DataSourceID="XmlDataSource">
<font face="tahoma" size="6"><Strong><%#XPath("title")%><br />
Apr 11, 2012 10:25 AM|mm10|LINK
If image is a child node of <url> then <%#XPath("image/url")%> should work, but if it's a attribute on the url node, you get the value by:
Please post your XML data if the above solution doesn't work.
Apr 13, 2012 06:05 AM|rameezshaikh9|LINK
Actually, i had given the wrong input. Image and Items are on the same level and there is no complexity. Thanks for the response :-)