protected function getTagName($node)
    {
        if (isset($node->tagName)) {
            return $node->tagName;
        } else if (isset($node->nodeName)) {
            return $node->nodeName;
        } else if (isset($node->localName)) {
            return $node->localName;
        }
        return null;
    }
protected function getTagName($node)
    {
        if (isset($node->tagName)) {
            return $node->tagName;
        } else if (isset($node->nodeName)) {
            return $node->nodeName;
        } else if (isset($node->localName)) {
            return $node->localName;
        }
        return null;
    }
protected function getTagName ( $ node ) { if ( isset ( $ node -> tagName ) ) { return $ node -> tagName ; } else if ( isset ( $ node -> nodeName ) ) { return $ node -> nodeName ; } else if ( isset ( $ node -> localName ) ) { return $ node -> localName ; } return null ; }
Portably retrieve the tag name of a node; deals with older versions
of libxml like 2.7.6
@param DOMNode $node
Portably retrieve the tag name of a node ; deals with older versions of libxml like 2 . 7 . 6