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

domxml_new_doc()

domxml_new_doc - Creates new empty XML document

Syntax

DomDocument domxml_new_doc (string $version)

Arguments

  • version - The XML version number of the document.

Description

Creates a new Dom document from scratch and returns it.

Version

PHP 4.2.0

Return value

Returns a new DomDocumentinstance.