编程学习网 > PHP技术 > php中级 > PHP扩展之XML操作(五)——XMLWriter
2014
11-07

PHP扩展之XML操作(五)——XMLWriter

一、概述及安装

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类及其成员函数

扫码二维码 获取免费视频学习资料

Python编程学习

查 看2022高级编程视频教程免费获取