René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

substring in XPath

substring can be used to find elements that start with a specific pattern:
The XML file:
<a>
  <b>
    <elem1> </elem1>
    <elem2> </elem2>
    <c>
      <elem3> </elem3>
    </c>
  </b>
</a>
The XPath expression //*[substring(name(),1,4) = "elem"] finds two elements named e: the one with six and the one with five.