code: private function walkChildren($node)
      {
          if ($node->hasChildren()) {
              foreach ($node->child as $child) {
                  $this->walkTree($child);
              }
          }
      }
docs: Helper method for traversing the XML tree.
  
  @param object $node     Tidy XML node.