title: Find element in XML using jquery
body: <p>I'm using jquery to go through a XML file and find some elements and display them on screen</p>
  
  <pre><code>$(xml).find('module').each(function(index){
  </code></pre>
  
  <p>I would like to select a single element in a certain position. I've tried several options like</p>
  
  <pre><code>$(xml).find('modulo').[1]{
  
  $(xml).find('modulo').(1){
  
  $(xml).find('modulo').each(function(index).get([1]){
  
  $(xml).find('modulo').get([1])
  </code></pre>
  
  <p>but none as worked so far. Does anyone knows what is the correct sintax?</p>
  
  <p>edit:--------</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $.ajax({
              type: "GET",
              url: "modulos.xml",
              dataType: "xml",
              success: function(xml) {
                  $(xml).find('modulo').each(function(index){
                      var MAC = $(this).find('MAC').text();
                      var Type = $(this).find('Type').text();
                      var Date = $(this).find('Date').text();
                      var Firmware = $(this).find('Firmware').text();
                      var room = $(this).find('room').text();
                      var equipment = $(this).find('equipment').text();
                      var calibration = $(this).find('calibration').text();
                      var next_calibration = $(this).find('next_calibration').text();
                      var rf = $(this).find('rf').text();
                      var battery = $(this).find('battery').text();
                      $('&lt;div class="items" id="link_'+index+'"&gt;&lt;/div&gt;').html(index+" - "+"MAC: "+MAC+
                                                                                          " Tipo: "+Type+
                                                                                          " Data: "+Date+
                                                                                          " Firmware: "+Firmware+
                                                                                          " Sala: "+room+
                                                                                          " Equipamento: "+equipment+
                                                                                          " Calibração: "+calibration+
                                                                                          " Próxima Calibração: "+next_calibration+
                                                                                          " RF: "+rf+
                                                                                          " Bateria: "+battery+"&lt;br&gt;").appendTo('#page-wrap');
                  });
              }
          });
      });
   &lt;/script&gt;
  </code></pre>
  
  <p>Here is the code i use to display the entire document</p>
  
  <p>and here is the xml file</p>
  
  <pre><code>&lt; ?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;modulos&gt;
  &lt;modulo&gt;
      &lt;MAC&gt;foobar&lt;/MAC&gt;
      &lt;Type&gt;foobar&lt;/Type&gt;
      &lt;Date&gt;foobar&lt;/Date&gt;
      &lt;Firmware&gt;foobar&lt;/Firmware&gt;
      &lt;room&gt;foobar&lt;/room&gt;
      &lt;equipment&gt;foobar&lt;/equipment&gt;
      &lt;calibration&gt;foobar&lt;/calibration&gt;
      &lt;next_calibration&gt;foobar&lt;/next_calibration&gt;
      &lt;rf&gt;foobar&lt;/rf&gt;
      &lt;battery&gt;foobar&lt;/battery&gt;
  &lt;/modulo&gt;
  &lt;modulo&gt;
      &lt;MAC&gt;foobar&lt;/MAC&gt;
      &lt;Type&gt;foobar&lt;/Type&gt;
      &lt;Date&gt;foobar&lt;/Date&gt;
      &lt;Firmware&gt;foobar&lt;/Firmware&gt;
      &lt;room&gt;foobar&lt;/room&gt;
      &lt;equipment&gt;foobar&lt;/equipment&gt;
      &lt;calibration&gt;foobar&lt;/calibration&gt;
      &lt;next_calibration&gt;foobar&lt;/next_calibration&gt;
      &lt;rf&gt;foobar&lt;/rf&gt;
      &lt;battery&gt;foobar&lt;/battery&gt;
      &lt;/modulo&gt;
   &lt;/modulos&gt;
  </code></pre>