src/dom/Dom.php
public static function dom2str($node)
    {
        $doc = $node instanceof DOMDocument? $node : $node->ownerDocument;
        return $doc->saveXML($node);
    }
public static function dom2str($node)
    {
        $doc = $node instanceof DOMDocument? $node : $node->ownerDocument;
        return $doc->saveXML($node);
    }
public static function dom2str ( $ node ) { $ doc = $ node instanceof DOMDocument ? $ node : $ node -> ownerDocument ; return $ doc -> saveXML ( $ node ) ; }
Gets the string representation of a node.

@param DOMNode $node DOMNode object

@return string
Gets the string representation of a node .