I have to parse the below XML :
var xml = <gallery>
<image full="/images/gallery-resort/Sole_East_Lobby.jpg"/>
<image full="/images/gallery-resort/Cool_Crisp.jpg"/>
<image full="/images/gallery-resort/07_AK_Sole_Lobby2.jpg"/>
</gallery>
I want get the values of full attribute from the image tag. This structure is not proper but I need these image paths to show the images. I have tried below code for this but didn't worked:
xmlDoc = $.parseXML( xml ),
$xml = $( xmlDoc );
$($xml).each(function(){
var v = $(this).find("gallery");
});
Please, check it folks.