In ASP.net 2.0 with C# I have an xmldatasource control. when this control is bind to a repeater I can get the data form nodes by XPath.
I want to have a span and in this span to show the content of the first node in the xml file(title).
how do I do it?
If I have a sitemap I succeed do this thing like this:
<asp:SiteMapDataSource ID="sitemaptemp" SiteMapProvider="sitemaptempProvider"
runat="server" StartingNodeOffset="0" ShowStartingNode="false" />
but if I have an XML I don't know how to do it? THis is the definition for the XML:
<asp:XmlDataSource ID="XmlDSCategory" runat="server" DataFile="~/App_Data/XMLCategory.xml" >