XMLWriter::writeDTD

Writes a full DTD

public function writeDTD(
  string $name,
  string $publicid = NULL,
  string $systemid = NULL,
  string $subset = NULL,
): bool;

Parameters

  • string $name - The DTD name.
  • string $publicid = NULL - The external subset public identifier.
  • string $systemid = NULL - The external subset system identifier.
  • string $subset = NULL - The content of the DTD.

Returns

  • bool - - Returns TRUE on success or FALSE on failure.