xml pahsing issue..
- by 3gwebtrain
HI, any one help me in this xml parsing issue?
my xml is :
name
my jquery is :
$(function(){
$.get("shop.xml", function(data){
var shopInfo = $(data).find("shop").attr('title');
var showowner = $(data).find("raj").attr('title');
alert(shopInfo+':'+showowner);
})
})
when i alret in firefox it alret the shopInfo as "null" and showowner "title" and i case if i check with ie, and chrome, i am getting "null:null" in the alert message.
any one tell me what is the wrong i am doing here?
i need my jquery need to get xml data properly from to all browsers, for that any suggestion please?