(PHP 5, PHP 7)
Get a SimpleXMLElement object from a DOM node.
SimpleXMLElement simplexml_import_dom ( DOMNode $node [, string $class_name = "SimpleXMLElement" ] )
This function takes a node of a DOM document and makes it into a SimpleXML node. This new object can then be used as a native SimpleXML element.
Parameters:
node
A DOM Element node
class_