title: local-name() not working in XPath
body: <p>My XML is like below:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                               http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
      &lt;mime-mapping&gt;
          &lt;extension&gt;123&lt;/extension&gt;
          &lt;mime-type&gt;application/vnd.lotus-1-2-3&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
      &lt;mime-mapping&gt;
          &lt;extension&gt;3dml&lt;/extension&gt;
          &lt;mime-type&gt;text/vnd.in3d.3dml&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>As you see, it has namespace so default xpath such as <code>/web-app/mime-mapping/mime-type</code> will not work.</p>
  
  <p>Based on my reading on various threads,
  I tried:</p>
  
  <pre><code>/*[local-name()='web-app']/*[local-name()='mime-mapping']/*[local-name()='mime-type']
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>/*[name()='web-app']/*[name()='mime-mapping']/*[name()='mime-type']
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>/*[name()='web-app' and namespace-uri()='http://java.sun.com/xml/ns/javaee']/*[name()='mime-mapping' and namespace-uri()='http://java.sun.com/xml/ns/javaee']/*[name()='mime-type' and namespace-uri()='http://java.sun.com/xml/ns/javaee']
  </code></pre>
  
  <p>But none seem to work. I am testing in <a href="http://www.freeformatter.com/xpath-tester.html" rel="nofollow">http://www.freeformatter.com/xpath-tester.html</a>. Also, I am testing in my tool which requires XPath 1.0 and it does not recognize any of the above either.</p>
  
  <p>Any pointers?</p>