XMLWriter::writeDtd

xmlwriter_write_dtd

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

XMLWriter::writeDtd -- xmlwriter_write_dtd — DTD タグ全体を書き込む

説明

オブジェクト指向型

public function XMLWriter::writeDtd(
    string $name,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $content = null
): bool

手続き型

function xmlwriter_write_dtd(
    XMLWriter $writer,
    string $name,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $content = null
): bool

DTD 全体を書き込みます。

パラメータ

writer

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

name

DTD 名。

publicId

外部サブセットの公開識別子。

systemId

外部サブセットのシステム識別子。

content

DTD の内容。

戻り値

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

変更履歴

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

参考

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top