protected static function domNode2STX( $node )
    {
        if ( $node->hasAttributes() )
        {
            return new ggSimpleTemplateXML( $node );
        }
        foreach( $node->childNodes as $childNode )
        {
            if ( $childNode->nodeType == XML_ELEMENT_NODE )
            {
               return new ggSimpleTemplateXML( $node );
            }
        }
        return $node->textContent;
    }