Home > PHP > Function > DOM XML (PHP 4) > domxml_xmltree()

domxml_xmltree()

domxml_xmltree - Creates a tree of PHP objects from an XML document

Syntax

DomDocument domxml_xmltree (string $str)

Arguments

  • str - The contents of the XML file.

Description

The function parses the XML document in str and returns a tree PHP objects as the parsed document.

Version

PHP 4.2.0

Return value

Returns a tree of Dom objects starting by a DomDocument.