You should be able to parse XML the same way you parse DOM elements in jquery;
http://jsfiddle.net/TBwm8/3/
var xml = "<root><stuff></stuff><stuff><stuffchild></stuffchild></stuff></root>";
function alertit(jqueryObject) {
if (jqueryObject.length === 0) return;
jqueryObject.each(function() {
alert(this.nodeName.toLowerCase());
});
alertit(jqueryObject.children());
}
alertit($(xml));
source
share