Search code examples
asp.netxmlxpathtelerikrotator

How can i use xpath or other method to get node content data from the rotator?


I create a RadRotator in run time and i bind on an xml file .


I don't know How to get the title from the rotator to set the text of my label .


lbl_date.Text = (lbl_date.NamingContainer as RadRotatorItem).DataItem 

My xml part :

<news pnumber="1" id="1"><event_id>578</event_id><event_type_id>1</event_type_id><language_id>2</language_id><title>meeting</title></news>

Solution

  • Finally i get it :


    lbl_date.Text = XPathBinder.Eval((((lbl_date.NamingContainer as RadRotatorItem)).DataItem), "./title", "");