Hi,
I've been developing an app which pulls in an XML file using Jquery. Everything is working well in all browsers but I noticed that the Safari is not picking up my CDATA value. When I alert the value its empty.
I am using this code :
$('flight',xml).each(function(i) {
deeplink = $(this).find("deeplink").text();
alert(deeplink);
}
Here is the xml snip
Sure, Here you go.
<deeplink><![CDATA[http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=51806&merchantID=2816&programmeID=7676&mediaID=0&tracking=195974@Cheap Flight Tr&url=http://www.ebookers.com/partner/offsitesearch?triptype=roundtrip&origin=LHR&dest=SFO&departdate=2010-02-20&returndate=2010-02-27&departspan=Anytime&returnspan=Anytime&adults=1&type=AIR&cabin=C&locale=en_GB&dc=XML&dp=AffiliateFuture&WT.mc_ev=click&WT.mc_id=EBUK_AIR_AffiliateFuture&selectKey=BA287LHRSFO0220C_BA286SFOLHR0227C&selectedprice=GBP%7C454.30]]></deeplink>
The above code works for every element but the CDATA. If I alert the XML I see the CDATA.
Does anyone know how to access or alert the data? Thanks Colsie