一、概述與安裝
一、概述及安裝
This is the XMLWriter extension. It wraps the libxml xmlWriter API.
This extension represd xmlWriter API.
This extension represds extenm. 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.
此擴充功能需要 xml。這表示需要使用 --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::endAttribute — End attribMLd
XMLWriter ::endComment — Create end comment XMLWriter::endDocument — End current document XMLWriter::endDTDAttlist DTD element XMLWriter ::endDTDEntity — End current DTD Entity XMLWriter::endDTD — End current DTD XMLWriter::endElement: End current -
XMLWriter: :flush — Flush current buffer
-
XMLWriter::fullEndElement — End current element
-
XMLWriter::openMemory — openURI — Create new xmlwriter using source uri for output
-
XMLWriter::outputMemory — Returns current buffer
-
XMLWriter::setIndentString — Set string used for indentingation
-
XMLWriter::startAttributeNS — Create startnamespaced attribute
-
XMLWriter::startAttribute — Create start attribute
-
XMLWriter::start
-
XMLWriter::startDocument — Create document tag
-
XMLWriter::startDTDAttlist — Create start DTD AttList
-
XMLWriter::startDTDElement 1 ity
-
XMLWriter:: startDTD — Create start DTD tag
-
XMLWriter::startElementNS — Create start namespaced element tag
-
XMLWriter:: PI tag
-
XMLWriter::text — Write text
-
XMLWriter::writeAttributeNS — Write full namespaced attribute
-
XMLWriter::wffullAtrifffullaltri — Write full CDATA tag
-
XMLWriter ::writeComment — Write full comment tag
-
XMLWriter::writeDTDAttlist — Write full DTD AttList tag
🎼 riteDTDEntity — Write full DTD Entity tag
XMLWriter::writeDTD — Write full DTD tag
-
XMLWriter::writeElementNS — Write full namespaced el:: tag
XMLWriter::writePI — Writes a PI
XMLWriter::writeRaw — Write a raw XML text
以上就是PHP擴充之XML操作(五)-XMLWriter的內容,更多相關內容請注意PHP中文網(php. cn)!