← All docs

xmlwriter_write_dtd()

Writes a complete DTD.

xmlwriter_write_dtd()

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

Writes a complete DTD.

Parameters:

  • $writer (mixed)
  • $name (string)
  • $publicId (?string), default null, optional
  • $systemId (?string), default null, optional
  • $content (?string), default null, optional

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xmlwriter_write_dtd is implemented in the compiler, see the internals page.