Click here to Skip to main content
15,908,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello House

Does anyone know how to use XPath to filter corresponding record? i have define Xpath in XML datasource, i want to display description where title = sale this week, the code below doesnt give the desired result, Pls help...


<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="XMLFile.xml"
XPath="rss/channel/item[title='Sale this week']/description">
Posted
Comments
idenizeni 31-Jan-14 15:39pm    
Can you post a sample of the XML? XPath is case-sensitive, so be sure your XPath has the exact same casing as the XML source.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900