我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

PHP扩展之XMLWriter的示例分析-创新互联

这篇文章主要介绍PHP扩展之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类及其成员函数
  • XMLWriter::endAttribute — End attribute

  • XMLWriter::endCData — End current CDATA

  • XMLWriter::endComment — Create end comment

  • XMLWriter::endDocument — End current document

  • XMLWriter::endDTDAttlist — End current DTD AttList

  • XMLWriter::endDTDElement — End current DTD element

  • XMLWriter::endDTDEntity — End current DTD Entity

  • XMLWriter::endDTD — End current DTD

  • XMLWriter::endElement — End current element

  • XMLWriter::endPI — End current PI

  • XMLWriter::flush — Flush current buffer

  • XMLWriter::fullEndElement — End current element

  • XMLWriter::openMemory — Create new xmlwriter using memory for string output

  • XMLWriter::openURI — Create new xmlwriter using source uri for output

  • XMLWriter::outputMemory — Returns current buffer

  • XMLWriter::setIndentString — Set string used for indenting

  • XMLWriter::setIndent — Toggle indentation on/off

  • XMLWriter::startAttributeNS — Create start namespaced attribute

  • XMLWriter::startAttribute — Create start attribute

  • XMLWriter::startCData — Create start CDATA tag

  • XMLWriter::startComment — Create start comment

  • XMLWriter::startDocument — Create document tag

  • XMLWriter::startDTDAttlist — Create start DTD AttList

  • XMLWriter::startDTDElement — Create start DTD element

  • XMLWriter::startDTDEntity — Create start DTD Entity

  • XMLWriter::startDTD — Create start DTD tag

  • XMLWriter::startElementNS — Create start namespaced element tag

  • XMLWriter::startElement — Create start element tag

  • XMLWriter::startPI — Create start PI tag

  • XMLWriter::text — Write text

  • XMLWriter::writeAttributeNS — Write full namespaced attribute

  • XMLWriter::writeAttribute — Write full attribute

  • XMLWriter::writeCData — Write full CDATA tag

  • XMLWriter::writeComment — Write full comment tag

  • XMLWriter::writeDTDAttlist — Write full DTD AttList tag

  • XMLWriter::writeDTDElement — Write full DTD element tag

  • XMLWriter::writeDTDEntity — Write full DTD Entity tag

  • XMLWriter::writeDTD — Write full DTD tag

  • XMLWriter::writeElementNS — Write full namespaced element tag

  • XMLWriter::writeElement — Write full element tag

  • XMLWriter::writePI — Writes a PI

  • XMLWriter::writeRaw — Write a raw XML text

以上是“PHP扩展之XMLWriter的示例分析”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!


当前标题:PHP扩展之XMLWriter的示例分析-创新互联
文章位置:http://mswzjz.cn/article/dipgdh.html

其他资讯