View Single Post
Old 10-20-2009, 09:25 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Much better tutorial:

http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html

In your case you want to loop through the return XML object, using a jQuery selector. For each "var" tag you find, you can determine the value of the name attribute using the attr() function. Something like this:
PHP Code:
$('var').each(function() {
    var 
varName = $(this).attr('name');
}); 
__________________
Fumigator is offline   Reply With Quote