How to use Zend_Dom to iterate all the text nodes?

I tried like this:
$dom = new Zend_Dom_Query($html);

$results = $dom->query('*');

foreach ($results as $result) {
    var_dump($result->textContent);
}

But this returns texts with childnodes text,
not the texts one by one.

Actually,
I'm trying to write View Filter,
e.g. to uppercase all the strings.

Do I have to use one of SPL Iterators?

-- 
regards
takeshin
-- 
View this message in context: 
http://old.nabble.com/Zend_Dom-iterate-all-texts-tp26440611p26440611.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to