XMLWriter::writeDtdEntity

xmlwriter_write_dtd_entity

DTD エンティティタグ全体を書き込む

説明

オブジェクト指向型

public bool XMLWriter::writeDtdEntity ( string $name , string $content [, bool $isParam = false [, stringnull $publicId = null [, stringnull $systemId = null [, stringnull $notationData = null ]]]] )

手続き型

bool xmlwriter_write_dtd_entity ( XMLWriter $writer , string $name , string $content [, bool $isParam = false [, stringnull $publicId = null [, stringnull $systemId = null [, stringnull $notationData = null ]]]] )

DTD エンティティ全体を書き込みます。

パラメータ

writer

手続き型のコールでのみ使用します。 変更される XMLWriter のインスタンスです。 このインスタンスは、xmlwriter_open_uri あるいは xmlwriter_open_memory を呼び出すことで取得したものです。

name

エンティティの名前。

content

エンティティの内容。

返り値

成功した場合に true を、失敗した場合に false を返します。

変更履歴

バージョン 説明
8.0.0 引数 writer は、XMLWriter のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。
8.0.0 publicId, systemId, notationData は、nullable になりました。

参考

  • XMLWriter::startDtdEntity
  • XMLWriter::endDtdEntity