Jquery读取XML
作者:佚名 发表时间:2015-01-31 16:21:04
$.get('1.xml', function (xml) {
        $(xml).find('file').each(function () {
            // $(this).attr("name");//查找该节点的属性值
            if ($(this).find("size").text() == "11111") {
                var $name = $(this).find("quer"); //获得quer节点
                alert($name.text());
                //其它操作
            }
        });
    });