-5

I need to load an XML File from a RSS in JavaScript. Can someone show a proper example or points to a tutorial that works??

Noor
  • 18,907
  • 36
  • 130
  • 243
  • 2
    RSS is XML with a particular schema. So what do you mean by `load an XML File from a RSS`? I mean if you have an RSS you already have XML, so what is it that you are asking in particular? – Darin Dimitrov Oct 18 '11 at 20:02
  • http://stackoverflow.com/questions/226663/parse-rss-with-jquery – c69 Oct 18 '11 at 20:05

1 Answers1

1

Browsers typically prevent Javascript from dynamically loading an XML RSS feed unless that feed is on the same domain. You can load JSON data, though, e.g.

jQuery.getJSON(url, function(data) { dosomethingwithdata; });
Matt H
  • 6,350
  • 2
  • 26
  • 32