title: Fetch node value containing escape characters using xpath
body: <p>I am using Java XML API to fetch a node value for a given XPath.
  Here is the code I am using to fetch the node value for a given XPath</p>
  
  <pre><code>    final XPathFactory factory = XPathFactory.newInstance();
      final XPath xpath1 = factory.newXPath();
      xpath1.setNamespaceContext(new MyNamespaceContext());
      InputSource inputSource = new InputSource(extractData(fileName));
      inputSource.setEncoding("UTF-8");
      String nodeValue = xpath1.evaluate(xpath, inputSource);
  </code></pre>
  
  <p>The xml file contains the node value as <code>Some&amp;gt;data</code>
  The node value I am expecting is <code>Some&amp;gt;data</code> but the value that is returned from the above code is <code>Some&gt;data</code></p>
  
  <p>Can any one help how to change the above code so that i get the node data as <code>Some&amp;gt;data</code></p>