If an ASP.NET form has an XmlDataSource on it, and in code I am setting the XPath filter, e.g:
xmlExample.XPath =
String.Format("data/reasons/reason[@text='{0}']/details/",someValue);
... can I then get the result of that XPath filtering in code, or do I have to bind to a control to find out the results?
In other words, is it possible to use code to access the xml data that an XmlDataSource is going to return?