I got a problem reading an XML-Feed Sample of the XML File:
<f:feed xmlns:f="http://www.bbgo.de/feedxml/feed" xmlns:a="http://www.bbgo.de/feedxml/article" xmlns="http://www.w3.org/1999/xhtml" f:customer="blub" f:name="dax-tecdax">
<f:title>Analysen: DAX, TecDAX</f:title>
<f:date>2010-09-22T20:46:29+02:00</f:date>
<f:url>http://www.bbgo.de/export/feed/stock-channel/dax-tecdax</f:url>
<f:articles>
<a:article a:id="2310446" a:status="published" a:payed-content="false" xml:lang="de-DE">
<a:title>Kabel Deutschland mit Verkaufsempfehlung</a:title>...
A simple test like:
$feed = new SimpleXMLElement($xml);
print_r($feed);
produces
SimpleXMLElement Object ( )
if i try
echo $xml;
the above sample is echoed correctly.
Why $feed array is not built? How can I access all <a:article>
in <f:articles>
?
I'm kinda stuck here,any help is appreciated, thanks a lot!