title: how to convert xml to json using jquery
body: <p>The following code runs very well for <a href="http://www.fyneworks.com/jquery/xml-to-json/data/animals.xml" rel="nofollow noreferrer">this test XML page</a>:  </p>
  
  <pre><code>$.get('data/animals.xml', function(xml){
  var animals = $.xml2json(xml);
  alert(animals.dog[1].name +'/'+ animals.dog[1]);
  });
  </code></pre>
  
  <p>But how can I adapt this code to get the rate data from <a href="http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml" rel="nofollow noreferrer">this European Central Bank page</a>?</p>
  
  <p><br></p>
  
  <p>Reference:</p>
  
  <ul>
  <li><a href="http://www.fyneworks.com/jquery/xml-to-json/#tab-Usage" rel="nofollow noreferrer">http://www.fyneworks.com/jquery/xml-to-json/#tab-Usage</a>  </li>
  <li><a href="https://stackoverflow.com/questions/3629042/getting-data-using-javascript">getting data using javascript</a></li>
  </ul>