title: how to get nodeValue of child node
body: <p>I have an HTML table with rows similar to this one:</p>
  
  <pre><code>    &lt;tr&gt;
          &lt;td&gt;11/05/2013&lt;/td&gt;
          &lt;td&gt;CBC W/DIFF&lt;/td&gt;
          &lt;td&gt;&amp;#xA0;&lt;/td&gt;
          &lt;td&gt; &lt;content ID="result210"&gt;Wbc: 4.5 X10E3/UL&lt;/content&gt; &lt;/td&gt;
          &lt;td&gt;Final&lt;/td&gt;  
      &lt;/tr&gt;
  </code></pre>
  
  <p>I want to get the nodeValue "Wbc: 4.5 X10E3/UL"</p>
  
  <p>Here is my javascript code so far:</p>
  
  <pre><code>var table = section.getElementsByTagName("table")[0];
  var tablebody = table.getElementsByTagName("tbody")[0];
  var rows = tablebody.getElementsByTagName("tr");
  for (i=0; i&lt;rows.length; i++) {
      var cells = rows[i].getElementsByTagName("td");
      var date        = cells[0].childNodes[0].data;
      var panel       = cells[1].childNodes[0].data;
      var result      = cells[2].childNodes[0].data;
      var description = cells[3].childNodes[0];
      var content     = description.firstChild.nodeValue;  //SCRIPT5007: Unable to get property 'nodeValue' of undefined or null reference
      var status      = cells[4].childNodes[0].data;  
      console.log(date +" " +panel +" " +result +" " +content +" " +status);
  }
  </code></pre>
  
  <p>Reported error is "SCRIPT5007: Unable to get property 'nodeValue' of undefined or null reference"</p>
  
  <p>If I comment out the description and content parts, the other fields are reported correctly so I know I'm close.
  I have also tried:</p>
  
  <pre><code>var content =  description.firstChild.firstChild.nodeValue;  //SCRIPT5007: Unable to get property 'firstChild' of undefined or null reference 
  
  var content = description.getElementsByTagName("content").childNodes[0].nodeValue;  //SCRIPT438: Object doesn't support property or method 'getElementsByTagName' 
  </code></pre>
  
  <p>Any suggestions?</p>