title: Childnodes multiple javascript XML
body: <p>Can't get chosen child when trying to pull out of XML - in this case it is author:</p>
  
  <pre><code>&lt;book category="WEB"&gt;
  &lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
  &lt;author&gt;James McGovern&lt;/author&gt;
  &lt;author&gt;Per Bothner&lt;/author&gt;
  &lt;author&gt;Kurt Cagle&lt;/author&gt;
  &lt;author&gt;James Linn&lt;/author&gt;
  &lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
  &lt;year&gt;2003&lt;/year&gt;
  &lt;price&gt;49.99&lt;/price&gt;
  &lt;/book&gt;
  </code></pre>
  
  <p>I can't get the javascript script to display my chosen author. Meaning that if I do this. </p>
  
  <pre><code>txt=xmlDoc.getElementsByTagName("title")[2].childNodes[0].nodeValue;
  document.write("&lt;p&gt;"+txt);
  </code></pre>
  
  <p>I get 'James McGovern'. But </p>
  
  <pre><code>txt=xmlDoc.getElementsByTagName("title")[2].childNodes[1].nodeValue;
  document.write("&lt;p&gt;"+txt);
  </code></pre>
  
  <p>Will not give me 'Per Bothner'. How can I make this possible?</p>