PHP
XML

XMLWriter::writeDTDAttlist

XMLWriter::writeDTDAttlist

xmlwriter_write_dtd_attlist

(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)

XMLWriter :: writeDTDAttlist - xmlwriter_write_dtd_attlist - 写完整的DTD AttList标签

描述

面向对象的样式

bool XMLWriter::writeDTDAttlist ( string $name , string $content )

程序样式

bool xmlwriter_write_dtd_attlist ( resource $xmlwriter , string $name , string $content )

写入一个DTD属性列表。

参数

`xmlwriter`

仅限于程序调用。正在修改的XMLWriter资源。此资源来自对xmlwriter_open_uri()或xmlwriter_open_memory()的调用。

name

DTD属性列表的名称。

content

DTD属性列表的内容。

返回值

成功时返回TRUE或失败时返回FALSE

扩展内容

  • XMLWriter :: startDTDAttlist() - 创建启动DTD AttList

  • XMLWriter :: endDTDAttlist() - 结束当前的DTD AttList

← XMLWriter::writeComment

XMLWriter::writeDTDElement →