Reading Xml using jQuery $(this).text() in IE -



Reading Xml using jQuery $(this).text() in IE -

i have tried fetch info xml. need children (parm) info parent tag (regstudio).

$(xml).find("regstudio").each(function() { $( $(this).text() ).find("parm").each(function(){ console.log($(this).text()); }); });

here $(this).text() not working in ie.

here xml have used:

<regstudio> <![cdata[ <config> <control id="0"> <parm name="proppage">propregpage</parm> <parm name="proptitle">page</parm> <parm name="requiredmark">*</parm> <parm name="showifreged">f</parm> <parm name="showifnoreq">f</parm> </control> </config> ]]> </regstudio>

according docs, need utilize $.parsexml parse xml , wrap in jquery object using $(...).

so want is:

$($.parsexml(xml)).find("regstudio").each(function() { .... }

this appears work in browsers according quick test: http://jsfiddle.net/u99qg/

jquery

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -