title: Accessing the length of child nodes returns twice the original count
body: <p>I've been trying to iterate the child nodes by getting the length of a <code>item</code> node. But, it shows double the size of the original length.</p>
  
  <p>This is the XML code i've been using,</p>
  
  <pre><code>    &lt;item&gt;
          &lt;title&gt;Title 1&lt;/title&gt;
          &lt;link&gt;http://www.example.com&lt;/link&gt;
          &lt;comments&gt;http://www.example.com/#comments&lt;/comments&gt;
          &lt;pubDate&gt;Mon, 19 Jan 2015 04:05:39 +0000&lt;/pubDate&gt;
          &lt;dc:creator&gt;&lt;![CDATA[Exampple]]&gt;&lt;/dc:creator&gt;
          &lt;category&gt;&lt;![CDATA[Hot News]]&gt;&lt;/category&gt;
          &lt;guid isPermaLink="false"&gt;http://www.example.com/?p=72278&lt;/guid&gt;
          &lt;description&gt;&lt;![CDATA[&lt;p&gt;Some Description&lt;/p&gt;]]&gt;&lt;/description&gt;
          &lt;content:encoded&gt;&lt;![CDATA[&lt;p&gt;Some description content.&lt;/p&gt;]]&gt;&lt;/content:encoded&gt;
          &lt;wfw:commentRss&gt;http://www.example.com/feed/&lt;/wfw:commentRss&gt;
      &lt;/item&gt;
  </code></pre>
  
  <p>Java Code :</p>
  
  <pre><code>NodeList nl = doc.getElementsByTagName("item");
  int length = nl.getLength();
  Log.d("check", "Item i count = " + length); //shows 10
  for (int i = 0; i &lt; length; i++) {
      Node currentNode = nl.item(i); // Get the first item
      String nodetestName = currentNode.getNodeName();
      NodeList nchild = currentNode.getChildNodes(); // Get the child nodes of first item
      int clength = nchild.getLength(); // Get the length of child nodes of first item (Shows 21 but original length is 10)
  </code></pre>
  
  <p>What should i do?</p>