[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-20 Thread s.ross
in both the callback and complete handlers, data.responseXML => [object Document] The question is how to turn this into a jQuery object that can be traversed. I'm still not grokking that. What I'm looking for is something like: xmlDoc = $(data.responseXML) xmlDoc.find('category').each(function(

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-20 Thread ricardobeat
It seems you have a misunderstanding here. $(data).text() will get you the innerText/textContent of all the nodes in your XML, it's not converting the whole response back to text. Are you sending the response as 'text/xml' from the server? add complete: function(xhr){ console.log(xhr); } an

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-19 Thread s.ross
Thanks for the reply. Here are a few results from the callback function: data => [object Document] data.find('category') => TypeError: Value undefined does not allow function calls. $(data).find('category') => [object Object] $(data).find('category').length => 0 $(data).text() => [text of whole

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-19 Thread mkmanning
I suspect it's the dance you're having to do. Quickly testing in a browser, If you use xmlObjectTree = $(data) then you can iterate through the animal tags. Doing the dance in a browser yields an unrecognized expression syntax exception. How did you come to use $($(data).text()); and what happen