protected function getData($node)
    {
        if (isset($node->data)) {
            return $node->data;
        } else if (isset($node->nodeValue)) {
            return $node->nodeValue;
        } else if (isset($node->textContent)) {
            return $node->textContent;
        }
        return null;
    }
protected function getData($node)
    {
        if (isset($node->data)) {
            return $node->data;
        } else if (isset($node->nodeValue)) {
            return $node->nodeValue;
        } else if (isset($node->textContent)) {
            return $node->textContent;
        }
        return null;
    }
protected function getData ( $ node ) { if ( isset ( $ node -> data ) ) { return $ node -> data ; } else if ( isset ( $ node -> nodeValue ) ) { return $ node -> nodeValue ; } else if ( isset ( $ node -> textContent ) ) { return $ node -> textContent ; } return null ; }
Portably retrieve the data of a node; deals with older versions
of libxml like 2.7.6
@param DOMNode $node
Portably retrieve the data of a node ; deals with older versions of libxml like 2 . 7 . 6