Quantcast
Channel: Parsing an XML feed not working - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Michel Feldheim for Parsing an XML feed not working

if you watch your $thexml content you see the following:print_r( $thexml );SimpleXMLElement Object( [title] => external source [link] => http://www.externalsource.com/ [description] =>...

View Article



Answer by Craig Taub for Parsing an XML feed not working

A quick solution using the SimpleXMLElement::xpath() function:$thexml = simplexml_load_file("tonight.xml");foreach ($thexml->xpath('//item/title') as $title) { echo $title, "<br>\n";}You find...

View Article

Parsing an XML feed not working

I am trying to parse data from an xml or rss file. It is a bit of a mess. People tell me that its meant to be easy but I am struggling alot.First I want to get the radio shows news to display on site....

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images