I am making small website and I need to use this link to take news feed from there and put it in my website. How can I pars this news (title, text and image) and display it right on my website?
Asked
Active
Viewed 1,034 times
0
-
1http://stackoverflow.com/questions/10943544/how-to-parse-a-rss-feed-using-javascript This answer is very comprehensive – Dormouse Jun 21 '13 at 17:04
-
I have already try this answer and non of it examples worked for me... – carobnodrvo Jun 21 '13 at 17:10
-
Well which bits don't work for you? What have you tried? What code is failing? – Dormouse Jun 21 '13 at 17:11
-
http://jsfiddle.net/AFL9j/ XMLHttpRequest cannot load http://feeds.bbci.co.uk/news/world/europe/rss.xml. Origin http://fiddle.jshell.net is not allowed by Access-Control-Allow-Origin. And can you tell me is it somehow possible to extract news text even even though it is not in .xml file? – carobnodrvo Jun 21 '13 at 17:22
1 Answers
0
- User server side language to download the external xml contents
- Use jQuery.parseXML to parse it
- In PHP there is SimpleXML library where you can use to convert the XML to array or objects. Then convert the array or object to json.

Roseann Solano
- 762
- 2
- 8
- 13