Parsing an XML Feed with jQuery - cross domain (jsonp) -


How can I parse this XML feed using jQuery?

I need to retrieve the open value

This is what I have so far:

  = "Http://bit.ly/1cUJ1Dk", xmlDoc = $ .parseXML (Xml), $ xml = $ (xmlDoc), $ sharePrice = $ xml.find ('field [name =' open ']'); // Add Div $ opening price ("Open"). Attachments ($ sharePrice.text ());  

PS I have been accessing it from a different server, so

to send

< P> You need to bypass the same basic policy

  $ to retrieve an HTTP GET request feed, and then retrieve XML data as it is Do not use uRL with ajax ({type: .. 'receive', // redirect URL: 'http://feeds1.mcgbfa.com/engine.asmx/get15MinDelayedPrices?CompanyKey=coronation&subfeed=0', datatype : 'Xml', success: function (xml) {co Nsole.log (xml.find ('field [name =' open ']'));}, error: function () {console.log ('error');}});  

If the HTTP request is good in your console, then it means that returning XML is not valid "see" error,

apart from:. It seems that the feed server is slow.


Comments