benjamin-codegecko
-
6/7/2011 12:18:46 PM
XmlDataSource and XmlRepeater controls
Hi there,
I'm trying to get an XmlRepeater to bind to an XmlDataSource to consume an XML feed. Here's my code. <cms:XMLDataSource ID="xdsVimeo" runat="server" XmlUrl="http://vimeo.com/api/v2/user6962207/videos.xml" TableName="videos" /> <cms:XMLRepeater ID="xrpVimeo" runat="server" DataSourceName="xdsVimeo" DataBindByDefault="true" HideControlForZeroRows="false"> <HeaderTemplate> <ul class="vimeocolumn threecolumn"> </HeaderTemplate> <ItemTemplate> ... </ItemTemplate> <FooterTemplate> </ul> </FooterTemplate> </cms:XMLRepeater>
To my mind these should work rather fluidly together, my XML should be retrieved, dumped into the internal datatable, for me to then bind to my XmlRepeater. However, my datasource seems to return zero records - at least, the repeater comes back with zero records being bound to it. Where am I going wrong? Pointers appreciated - I don't want code answers, just some instruction on what these controls should do, as the documentation and howtos are rather sparse.
Many thanks,
Benjamin
|