XML Databinding to ASP.Net Repeater control can also be performed by using the C# XmlDataSource Class dynamically without adding the control on ASP.Net web page. You can programmatically set the DataFile property and XPath expression property of XmlDataSource object. For binding the Xml data source to the Repeater control set the value of DataSource property equal to the XmlDataSource object. It will render the Repeater control displaying the data items retrieved from XML file passed to the XmlDataSource class object.
Try the Sample below: