title: Using substring-after to search text in XPath query
body: <p>I trying to parse a string in an XML node by using an XPath query which requires that I strip out a substring and read the remaining value.  The substring may have a dynamic amount of whitespace before and after it before I can get to the value, so it would be helpful to have some sort of a indexOf function to use in the XPath.  I'm trying to use substring-after, but there is a good chance the XPath is 1.0, which according to <a href="https://stackoverflow.com/questions/333249/how-to-apply-the-xpath-function-substring-after">this post</a> might make this more difficult to accomplish.  The following is an example of the XML I am trying to parse:</p>
  <pre><code>&lt;root&gt;
     &lt;myField&gt;     StringToParse        7&lt;/myField&gt;
  &lt;/root&gt;
  </code></pre>
  <p>I'm trying to get at the value 7 in the string, which would seem possible with some combination of substring-after and normalize-space.  I'm not entirely sure I'm using it correctly because no matter which way I try to use it, the result is either a null value or the entire string, with the substring not removed.</p>
  <p>The way I am able to return the entire value (the lesser of two evils) is:</p>
  <pre><code>/myField[substring-after(.,'StringToParse')]
  </code></pre>
  <p>which I would hope would return '        7'  Could anyone let me know I'm doing wrong with the syntax, or if there is an alternate method I should be using to accomplish what I want?</p>
  <p>Thanks,</p>
  <p>Mike</p>