I am getting an undefined value to a XmlHttpRequest, the xml file has this line in it:
<market id="1" name="test">      
I can get the id returned but not the name, which returns as undefined...
$(document).ready(function () {
  $.ajax({
    type: "GET",
    url: "some url",
    dataType: "xml",
    success: function(xml) {
      var users = xml.getElementsByTagName("market")[0];
      localStorage["NAME"] = users.name;
    }  
  })
});
Where am I going wrong?
 
    