Using jquery 1.2.6, but I quickly tested this on 1.3 as well. I am parsing the google books search feed http://code.google.com/apis/books/docs/gdata/developers_guide_protocol.html#SearchingForBooks (about 1/3 down the page is an example feed). This feed has tags like <openSearch:totalResults>, <dc:creator>, <dc:title>.
This code succeeds in IE and firefox, but not in Chrome or Safari. 1 $.get( URLstem+query, {}, function(xml){ 2 numberResults = $('feed', xml).find('openSearch\ \:totalResults').text(); The variable numberResults comes back empty, not even zero or -1. If I change line 2 to 2 numberResults = $('feed', xml).find ('totalResults').text(); The variable numberResults comes back correctly with the number in between the <openSearch:totalResults></openSearch:totalResults> tag. But only in Safari/Chrome, and not in IE or Firefox. If there's no way to fix this in Line 2, I'm thinking of testing for the type of browser, or running a regex on the entire feed to remove the prefixes, so that <dc:title> would become <title> etc. I don't like either of those options. Thanks for any ideas.