DOM XML
PHP Manual

domxml_new_doc

(PHP 4 >= 4.2.0)

domxml_new_doc — Creates new empty XML document

说明

DomDocument domxml_new_doc ( string $version )

Creates a new Dom document from scratch and returns it.

参数

version

The XML version number of the document.

返回值

Returns a new DomDocument instance.


DOM XML
PHP Manual