private function parseChildren($node, &$attributes, $vars)
    {
        $result = '';
        for ($child = $node->firstChild; $child != null; $child = $child->nextSibling) {
            $result .=  $this->parseNode($child, $attributes, $vars);
        }
        return $result;
    }