print $tree->getChild(1)->getNodeValue(); print $tree->getChild(2)->getNodeValue();