I'm trying to import the last 5 posts from a Wordpress RSS feed and show them on my site.
I was using this, but it grabs the whole feed.
<asp:DataList ID="dataNews" runat="server" DataSourceID="xmlSource" >
<ItemTemplate>
<a href="<%# XPath("link") %>"><%# XPath("title") %></a>
</ItemTemplate>
</asp:DataList>
<asp:XmlDataSource ID="xmlSource" runat="server" DataFile="http://myblog.com/feed" XPath="rss/channel/item" EnableCaching="true" />
How can I accomplish this?