You are here: Re: Problems getting the nodeName with DomDocument « PHP « IT news, forums, messages
Re: Problems getting the nodeName with DomDocument

Posted by Kenneth Andresen on 09/29/61 11:35

Thanks Rob, that solved the problem for me!

Rob Richards wrote:

> Kenneth Andresen wrote:
>
>> I am having problems with the following functions where my return
>> simply is "#text Joe #text Smith #text unknown", it should have read
>> firstname Joe lastname Smith address unknown
>>
>> What am I doing wrong?
>
>
> You're trying to access the name of the Text node which is always
> #text and not it's parent element.
> $name = $elem->parentNode->nodeName;
>
> Rob
>
>

 

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

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