You are here: Re: SimpleXML question « PHP Programming Language « IT news, forums, messages
Re: SimpleXML question

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация