simplexml_import_domGet a Description
SimpleXMLElementnull simplexml_import_dom(object
$node , stringnull $class_name = SimpleXMLElement::class)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
Return Values
Returns a SimpleXMLElement or Errors/Exceptions
Throws a TypeError when passed a
non-XML or non-HTML Changelog
Examples
Example #1 Importing DOM
The above example will output: blah |