<p>I want to do this:  </p>

<blockquote>
  <p>//*fu</p>
</blockquote>

<p>which returns all nodes whose name ends in <strong>fu</strong>, such as <code>&lt;tarfu /&gt;</code> and <code>&lt;snafu /&gt;</code>, but not <code>&lt;fubar /&gt;</code></p>

Do something like:
```
```
//*[ends-with(name(), 'fu')]
```
```
For a good XPath reference, check out
W3Schools
.