xml pahsing issue..

Posted by 3gwebtrain on Stack Overflow See other posts from Stack Overflow or by 3gwebtrain
Published on 2010-06-11T16:39:33Z Indexed on 2010/06/11 16:43 UTC
Read the original article Hit count: 305

Filed under:

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?

© Stack Overflow or respective owner

Related posts about Xml