title: Issue with XML parsing using Commons JXPath
body: <p>I'm trying to parse a XML using Apache Commons JXPath. But for some reason, its not able to identify the child nodes after the xml is being parsed. Here's the sample code :</p>
  
  <pre><code>private static void processUrl(String seed){
      String test = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:media=\"http://search.yahoo.com/mrss/\" xmlns:openSearch=\"http://a9.com/-/spec/opensearchrss/1.0/\" xmlns:gd=\"http://schemas.google.com/g/2005\" xmlns:yt=\"http://gdata.youtube.com/schemas/2007\"&gt;&lt;id&gt;http://gdata.youtube.com/feeds/api/videos&lt;/id&gt;&lt;logo&gt;http://www.youtube.com/img/pic_youtubelogo_123x63.gif&lt;/logo&gt;&lt;link rel=\"alternate\" type=\"text/html\" href=\"http://www.youtube.com\"/&gt;&lt;author&gt;&lt;name&gt;YouTube&lt;/name&gt;&lt;uri&gt;http://www.youtube.com/&lt;/uri&gt;&lt;/author&gt;&lt;generator version=\"2.1\" uri=\"http://gdata.youtube.com\"&gt;YouTube data API&lt;/generator&gt;&lt;openSearch:totalResults&gt;144&lt;/openSearch:totalResults&gt;&lt;entry&gt;&lt;id&gt;http://gdata.youtube.com/feeds/api/videos/P1lDDu9L5YQ&lt;/id&gt;&lt;published&gt;2010-09-20T17:41:38.000Z&lt;/published&gt;&lt;updated&gt;2011-09-18T22:15:38.000Z&lt;/updated&gt;&lt;category scheme=\"http://schemas.google.com/g/2005#kind\" term=\"http://gdata.youtube.com/schemas/2007#video\"/&gt;&lt;link rel=\"alternate\" type=\"text/html\" href=\"http://www.youtube.com/watch?v=P1lDDu9L5YQ&amp;amp;feature=youtube_gdata\"/&gt;&lt;/entry&gt;&lt;/feed&gt;";
      Document doc = null;
      try{
          DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
          ByteArrayInputStream bais = new ByteArrayInputStream(test.toString().getBytes("UTF8"));
          doc = builder.parse(bais);
          bais.close();
  
          JXPathContext ctx = JXPathContext.newContext(doc);
          List entryNodes = ctx.selectNodes("/feed/entry");
          System.out.println("number of threadNodes " + entryNodes.size());
          int totalThreads = 0;
          for (Object each : entryNodes) {
              totalThreads++;
              Node eachEntryNode = (Node) each;
              JXPathContext msgCtx = JXPathContext.newContext(eachEntryNode);
              String title = (String) msgCtx.getValue("title");
          }
      }catch (Exception ex) {
          ex.printStackTrace();
      }
  }
  </code></pre>
  
  <p>I've used JXPath earlier and never had any issues. I debugged the document object,it doesn't seemed to have the child node () for . All I'm able to see is the root element. I also tried DOMParser without any luck.</p>
  
  <pre><code>DOMParser parser = new DOMParser();
          Document doc = (Document) parser.parseXML(new ByteArrayInputStream(sb0.toString().getBytes("UTF-8")));
  </code></pre>
  
  <p>I'll appreciate if someone can provide pointers to this isuse.</p>