JQuery parsing of an XML string (from a web service) and them iterating through the contents. SalesOrderItem being the top level item
var xmlDoc = $.parseXML(req.responseText);
var $xml = $(xmlDoc);
var $si = $xml.find("SalesOrderItem");
$($si).each(function (index) {
console.log($(this).find("PartNumber").text());
});