Alex Rivera | Logout

Select an XML element regardless of level with XPATH

Asked 2011-01-27T09:17:32.360
23

I have this:

<a>
  <b>
    <t>text</t>
  </b>
</a>
<a>
  <t>text</t>
</a>

So I want to select the text regardless of where is it. (note that it can be anywhere not just 1/2 levels down, it can have no parents for instance)

Is this possible?

Edit
Report

1 Answer

10

just //t if you want all <t> tags

answered 2011-01-27T09:22:33.407

Your Answer