PHP擴(kuò)展之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.
此擴(kuò)展需要?libxml?PHP 擴(kuò)展。這表示需要使用?--enable-libxml?,盡管這將隱式完成因?yàn)?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.
此擴(kuò)展默認(rèn)為啟用,編譯時(shí)可通過下列選項(xiàng)禁用:?--disable-xmlwriter
二、XMLWriter類及其成員函數(shù)XMLWriter::endAttribute?— End attributeXMLWriter::endCData?— End current CDATAXMLWriter::endComment?— Create end commentXMLWriter::endDocument?— End current documentXMLWriter::endDTDAttlist?— End current DTD AttListXMLWriter::endDTDElement?— End current DTD elementXMLWriter::endDTDEntity?— End current DTD EntityXMLWriter::endDTD?— End current DTDXMLWriter::endElement?— End current elementXMLWriter::endPI?— End current PIXMLWriter::flush?— Flush current bufferXMLWriter::fullEndElement?— End current elementXMLWriter::openMemory?— Create new xmlwriter using memory for string outputXMLWriter::openURI?— Create new xmlwriter using source uri for outputXMLWriter::outputMemory?— Returns current bufferXMLWriter::setIndentString?— Set string used for indentingXMLWriter::setIndent?— Toggle indentation on/offXMLWriter::startAttributeNS?— Create start namespaced attributeXMLWriter::startAttribute?— Create start attributeXMLWriter::startCData?— Create start CDATA tagXMLWriter::startComment?— Create start commentXMLWriter::startDocument?— Create document tagXMLWriter::startDTDAttlist?— Create start DTD AttListXMLWriter::startDTDElement?— Create start DTD elementXMLWriter::startDTDEntity?— Create start DTD EntityXMLWriter::startDTD?— Create start DTD tagXMLWriter::startElementNS?— Create start namespaced element tagXMLWriter::startElement?— Create start element tagXMLWriter::startPI?— Create start PI tagXMLWriter::text?— Write textXMLWriter::writeAttributeNS?— Write full namespaced attributeXMLWriter::writeAttribute?— Write full attributeXMLWriter::writeCData?— Write full CDATA tagXMLWriter::writeComment?— Write full comment tagXMLWriter::writeDTDAttlist?— Write full DTD AttList tagXMLWriter::writeDTDElement?— Write full DTD element tagXMLWriter::writeDTDEntity?— Write full DTD Entity tagXMLWriter::writeDTD?— Write full DTD tagXMLWriter::writeElementNS?— Write full namespaced element tagXMLWriter::writeElement?— Write full element tagXMLWriter::writePI?— Writes a PIXMLWriter::writeRaw?— Write a raw XML text相關(guān)文章:
1. JavaScript設(shè)計(jì)模式之策略模式實(shí)現(xiàn)原理詳解2. idea設(shè)置代碼格式化的方法步驟3. Django Auth用戶認(rèn)證組件實(shí)現(xiàn)代碼4. 八種Vue組件間通訊方式合集(推薦)5. GIT相關(guān)-IDEA/ECLIPSE工具配置的教程詳解6. Python tkinter制作單機(jī)五子棋游戲7. Django model class Meta原理解析8. JSP頁面跳轉(zhuǎn)方法大全9. vue項(xiàng)目登錄成功拿到令牌跳轉(zhuǎn)失敗401無登錄信息的解決10. 秒殺場景的緩存、隊(duì)列、鎖使用Redis優(yōu)化設(shè)計(jì)方案
