![Picture of Joshua Jackson Picture of Joshua Jackson](/graphics/unknown.gif)
Joshua Jackson - 2011-11-30 15:59:13 -
In reply to message 4 from Antonius Aji
Well...
While I was typing this post to get some help, I figured out how to get namespaces working.
echo $item->{"name:space"};
I spent about an hour trying to figure out why the previous example of $data->{'ns:stuff'} wasn't working.
Hehehe...
JJ
Example xml...
<rss>
<channel>
<item>
<title>Title</title>
<mlm:location>Branson, MO</mlm:location>
</item>
</channel>
</rss>
Example code...
<?php echo $item->{"mlm:location"}; ?>
Example output...
Branson, MO