Re: Replacing text of a DOM text node

From: Date: Wed, 07 Jun 2006 12:29:27 +0000
Subject: Re: Replacing text of a DOM text node
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-237555@lists.php.net to get a copy of this message
>BTW, is there an easy way to get the total amount of items in a curent node? count ( >$nodeElement -> parentNode -> childNodes ) always returns 1. For now the only solution I know >of is looping through the nodeElements (e.g. foreach ( $nodeElement as $value ) and have a counter >inside the loop. The way I did this (unfortunately in another language) was to write a recursive function that traveled to the end counting along the way and then returned the count. hth's tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#237555) next »