title: xpath not working in java
body: <p>I have the below xml string</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;Structure&gt;
     &lt;LongUnsigned value="142794"/&gt;
     &lt;OctetString value="07E2051E030F1E0404800000"/&gt;
     &lt;Structure&gt;
        &lt;OctetString value="07E2051E030F1E0404800000"/&gt;
        &lt;OctetString value="66574536387"/&gt;
        &lt;Array&gt;
           &lt;Structure&gt;&lt;OctetString value="0000000000000001"/&gt;&lt;OctetString value="9889892347"/&gt;&lt;/Structure&gt;
           &lt;Structure&gt;&lt;OctetString value="00098347586768574"/&gt;&lt;OctetString value="6283046502"/&gt;&lt;/Structure&gt;
           &lt;Structure&gt;&lt;OctetString value="0000011000000001"/&gt;&lt;OctetString value="899734729847586"/&gt;&lt;/Structure&gt;
        &lt;/Array&gt;
     &lt;/Structure&gt;
  &lt;/Structure&gt;
  </code></pre>
  
  <p>I am using the below xpath but it always returns an empty string.</p>
  
  <pre><code>        XPath xPath = XPathFactory.newInstance().newXPath();
          try {
              String eval = xPath.evaluate("//Structure/Structure/Array", new InputSource(new StringReader(xmlString)));
              System.out.println("Eval:" + eval);
          } catch (XPathExpressionException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>
  
  <p>I tried running this xpath online and it seems to work just fine. What am i missing in Java that makes it not work as expected.</p>