using System; using System.Xml; using System.Collections.Generic; using System.Data; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class WebUserControlRepeater : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { XmlTextReader reader = new XmlTextReader("http://www.officeexchange.net/CMSPages/NewsRss.aspx"); DataSet ds = new DataSet(); ds.ReadXml(reader); XmlDataSource1.Data = ds.GetXml(); } } ###################
<%#XPath("item/title")%> <%#XPath("substring(item/description, 0, 13)")%>