On 6 Feb, 21:52, victorcorey <[EMAIL PROTECTED]> wrote:
> XML sample:
> <?xml version="1.0" encoding="UTF-8"?> [...]
>
> How can I filter the row nows based on the region? I want to only show
> row nodes that have a region value of Latin America and the Caribbean.

is this some xml you get from an ajax call?
in this case, if you use $.get, maybe you could try something like
this:

$.get('path/to/file.xml', function(data){
        $(data).find('row').each(function(){
                var region = $(this).find('region').text();
                if (region == "Latin America and the Caribbean") {
                        // show
                }
        });
});

I didn't test it, but I hope it gives you an idea :)

Reply via email to