title: How to read this xml file with javascript?
body: <p>Im reading an XML file with ajax. Everything is working, I have just no idea how to get the string out of the xml file. The xml file looks like this:</p>
  
  <pre><code>&lt;file&gt;
      &lt;data&gt;
          &lt;name&gt;Brittus&lt;/name&gt;
      &lt;/data&gt;
      &lt;bank&gt;
          &lt;money id="1"&gt;10&lt;/money&gt;
          &lt;money id="2"&gt;25&lt;/money&gt;
          &lt;money id="3"&gt;40&lt;/money&gt;
          &lt;money id="4"&gt;60&lt;/money&gt;
      &lt;/bank&gt;
  &lt;/file&gt;
  </code></pre>
  
  <p>Now I would like to get the value of the tag money with the attribute 4. How can i get it with javascript?</p>
  
  <pre><code>file = responseObject.responseXML;
  alert(file.getElementsbyTagName("money")[2].//an now?
  </code></pre>
  
  <p>And how to get the value of the money tag with id 2?</p>
  
  <p>Thank you</p>