magritton
8/6/2014 - 2:59 PM

JQuery parsing of an XML string (from a web service) and them iterating through the contents. SalesOrderItem being the top level item

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());
                    });