simplexml_import_dom

Supported Versions: PHP 5, PHP 7, PHP 8
Get a SimpleXMLElement object from a DOM node
<?php simplexml_import_dom(object $node, ?string $class_name = SimpleXMLElement::class): ?SimpleXMLElement