I have an xml document looking something like this:
HTML Code:
  <Item text="lvl1" Role="A">
    <Item text="lvl2" Role="A">
      <Item text="lvl3" Role="A" />
      <Item text="lvl3" Role="B" />
    <Item text="lvl2" Role="B" />
  <Item text="lvl1" Role="B">
I'd like to get all nodes with a specific role. Something like this:
XmlDataSource.XPath = "//Item[contains(@Role, 'A')]"
It works on a single level but how do I filter my elements in all levels?