TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Get Data from XML Feed (http://www.talkphp.com/general/6077-get-data-xml-feed.html)

buildakicker 12-31-2011 10:38 PM

Get Data from XML Feed
 
Hi all,

I am trying to parse an XML feed and just get an image from it. The feed is not on my domain.

The feed is: http://www.sierraavalanchecenter.org/bottomline-rss.php

I am trying to get the #dangericon image.

I have tried using SimpleXML and other things with PHP, but am not getting the results.

Also, If I wanted to manipulate this with Javascript/Jquery, would I need to first save the string in sqlite or the like and then pull it out with jquery and manipulate it there?

Anyone have some ideas for me to try? Thanks!

wGEric 01-05-2012 10:14 PM

You have to parse the XML to get the <description> and then you have to parse the contents of <description> to get that icon.

Javascript can parse XML (DOM) so you can manipulate the feed directly use jQuery. No need to save it somewhere else.


All times are GMT. The time now is 06:32 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0