[jQuery] Parsing XML using jQuery

2008-01-29 Thread step kapusta
Thanks, David! :) Your example helped me a lot to find a solution! The problem was somewhere other. That xml file is generateв with PHP-script. But forget to send the right header using header("Content-Type: text/xml; charset=utf-8"); before XML contents output! Realy stupid mistake!

[jQuery] Parsing XML using jQuery

2008-01-28 Thread step kapusta
I have a problem, couldn't solve it for a long time. I have the following XML file, returned from ajax: 1 Varvarka, 1 1 2 Nikolskaya, 1 2 3 Varvarka, 3 3 And I wanna get the value of 'city_id' element of the each element 'building'.