|
PHP5中文手册
DOMDocument->saveXML()(No version information available, might be only in CVS) DOMDocument->saveXML() — Dumps the internal XML tree back into a string 说明DOMDocument
string saveXML
([ DOMNode $node
[, int $options
]] )
Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below. 参数
返回值Returns the XML, or FALSE if an error occurred. 错误/异常
更新日志
范例
Example#1 Saving a DOM tree into a string
<?php 上例将输出:
|