Home > PHP > Function > DOM > dom_import_simplexml()

dom_import_simplexml()

dom_import_simplexml - Gets a
DOMElementobject from a
SimpleXMLElementobject

Syntax

DOMElement dom_import_simplexml (SimpleXMLElement $node)

Arguments

  • node - The SimpleXMLElementnode.

Description

This function takes the node node of class SimpleXMLand makes it into a DOMElementnode. This new object can then be used as a native DOMElementnode.

Version

PHP 5

Return value

The DOMElementnode added or FALSE if any errors occur.