Re: Problems getting the nodeName with DomDocument

From: Date: Fri, 23 Dec 2005 20:17:41 +0000
Subject: Re: Problems getting the nodeName with DomDocument
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-227858@lists.php.net to get a copy of this message
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


« previous php.general (#227858) next »