title: Android parse XML to get node value
body: <p>So, I have written something small to parse the feed for a Youtube user.</p>
  
  <p>The problem is that when I call <code>getNodeValue()</code> null is returned. Why is this? Any ideas or alternative approached appreciated, thanks.</p>
  
  <p>Here's a snippet of how i'm currently doing things:</p>
  
  <pre><code>try {
  
      Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("https://gdata.youtube.com/feeds/api/users/estudiosabiertostv/uploads");
  
      NodeList entries = d.getElementsByTagName("entry");
  
      for(int i = 0; i &lt; entries.getLength(); i++) {
  
          NodeList children = entries.item(i).getChildNodes();
          YoutubeVideo video = new YoutubeVideo();
  
          for(int j = 0; j &lt; children.getLength(); j++) {
  
              Node child = children.item(j);
  
              if(child.getNodeName().equals("title")) {
  
                  video.title = child.getNodeValue();
                  break;
              }
          }
          videos.add(video);
      }
  }
  catch (Exception e) {
  
      e.printStackTrace();
  }
  </code></pre>
  
  <p>Here is the url where I am getting the XML from:</p>
  
  <pre><code>https://gdata.youtube.com/feeds/api/users/estudiosabiertostv/uploads
  </code></pre>
  
  <p>Here's a snippet of an entry, of which I am trying to get the title</p>
  
  <pre><code>&lt;entry&gt;
      &lt;id&gt;http://gdata.youtube.com/feeds/api/videos/oDbOmTY3gDw&lt;/id&gt;
      &lt;published&gt;2012-12-17T08:14:12.000Z&lt;/published&gt;
      &lt;category scheme="http://schemas.google.com/g/2005#kind" term="http://gdata.youtube.com/schemas/2007#video"/&gt;
      &lt;title type="text"&gt;SEAS - Grupo San Valero - Crea tu propia Navidad (2012)&lt;/title&gt;
  
      &lt;content type="text"&gt;Felicitación de Navidad de SEAS, Estudios Abiertos del Grupo San Valero&lt;/content&gt;
      &lt;link rel="alternate" type="text/html" href="http://www.youtube.com/watch?v=oDbOmTY3gDw&amp;feature=youtube_gdata"/&gt;
      &lt;author&gt;
          &lt;name&gt;estudiosabiertostv&lt;/name&gt;
          &lt;uri&gt;http://gdata.youtube.com/feeds/api/users/estudiosabiertostv&lt;/uri&gt;
      &lt;/author&gt;
  &lt;/entry&gt;
  </code></pre>