|
Posted by Andy on 01/28/07 12:55
On Jan 28, 12:47 pm, "Andy" <amn...@gmail.com> wrote:
> I'm running in to a little issue with SimpleXML, and wondered if
> anyone knew if it was normal implementation for SimpleXML, or I'm not
> using a correct flag, or even it's a an issue that should be
> resolved. I'm actually only just starting to use SimpleXML with any
> vigor, so I may well be mistaken about what I think it should do...
[snip]
Well, apparently I am mistaken (no surprise there!)
Even though the print_r output doesn't show the title attribute,
playing around with the asXML() method showed that the parameter was
actually there. So trying to drill down further with:
$url = (string)$xml->item[0]->uk->urls->url[0]['title'];
echo $url;
does indeed get me the title of the url.
I guess that just goes to show that I need to give an issue a couple
more minutes thought before posting... ;-)
Andy
[Back to original message]
|