一、概述及安装
This is the XMLWriter extension. It wraps the libxml xmlWriter API.
This extension represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data.
This extension can be used in an object oriented style or a procedural one. Every method documented describes the alternative procedural call.
此扩展需要 libxml PHP 扩展。这表示需要使用 --enable-libxml ,尽管这将隐式完成因为 libxml 是缺省开启的。
The XMLWriter extension was initially a PECL extension for PHP 5. It was later added to the PHP source (bundled) as of PHP 5.1.2. This extension is enabled by default.
此扩展默认为启用,编译时可通过下列选项禁用: --disable-xmlwriter
二、XMLWriter类及其成员函数
XMLWriter::endCData — End current CDATA
XMLWriter::endDocument — End current document
XMLWriter::endDTDAttlist — End current DTD AttList
XMLWriter::endDTDElement — End current DTD element
X