If I am parsing an xml file with something like :
$.ajax({
type: "GET",
url: "file.xml",
dataType: "xml",
success: function parseXml(data)
{
$(data).find("ITEM").each(function()
{
var quant=$("QTY", this).text();
};
};
});
How would I sum the total of everything that is returned in QTY?
Get it, add it. Optimized for efficiency using context.