tidy_parser.php
private function walkChildren($node)
    {
        if ($node->hasChildren()) {
            foreach ($node->child as $child) {
                $this->walkTree($child);
            }
        }
    }
private function walkChildren($node)
    {
        if ($node->hasChildren()) {
            foreach ($node->child as $child) {
                $this->walkTree($child);
            }
        }
    }
private function walkChildren ( $ node ) { if ( $ node -> hasChildren ( ) ) { foreach ( $ node -> child as $ child ) { $ this -> walkTree ( $ child ) ; } } }
Helper method for traversing the XML tree.

@param object $node     Tidy XML node.
Helper method for traversing the XML tree .