PHP Velho Oeste 2024

XMLWriter::writeDtd

xmlwriter_write_dtd

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

XMLWriter::writeDtd -- xmlwriter_write_dtdEscribe una etiqueta completa del DTD

Descripción

Estilo orientado a objetos

XMLWriter::writeDtd(
    string $name,
    string $publicId = ?,
    string $systemId = ?,
    string $subset = ?
): bool

Estilo por procedimientos

xmlwriter_write_dtd(
    resource $xmlwriter,
    string $name,
    string $publicId = ?,
    string $systemId = ?,
    string $subset = ?
): bool

Escribe un completo DTD.

Parámetros

xmlwriter

Sólo para llamadas por procedimientos. El resource XMLWriter que está siendo modificado. Este recurso proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

name

El nombre del DTD.

publicId

El identificador del subcojunto externo publico.

systemId

El identificador externo del subconjunto del sistema.

subset

El contenido del DTD.

Valores devueltos

Devuelve true en caso de éxito o false en caso de error.

Ver también

add a note add a note

User Contributed Notes 1 note

up
-2
test2 at twinmail dot de
14 years ago
Use NULL for $publicId to force 'SYSTEM' instead of 'PUBLIC' output.
To Top