Hi there,
I am trying to make this little bit of code work
[code=php]
$string = <<<XML
<blogEntries xmlns:blog=”http://locahost/docs/”>
<blog:entry>
<blog:title>Sencond main test</blog:title>
<blog:topic>other</blog:topic>
<blog:subTopic>just another test to see what happens</blog:subTopic>
<blog:author>kenn</blog:author>
<blog:date>2008-07-30</blog:date>
<blog:text>This is another test to see what happens. I wonder what it does if I put in some HTML <BR><BR>
I don’t know if it will screw it up!
LA LA LA
</blog:text>
</blog:entry>
</blogEntries>
XML;
$xml = new SimpleXMLElement($string);
var_dump($xml);
however no matter what when I do a var_dump I get this.
[CODE]
object(SimpleXMLElement)#1 (0) { }
I can’t understand why my variable is empty… Any help?
Thanks