DOMImplementation::createDocumentTypeCreates an empty DOMDocumentType object Beschreibung
public DOMDocumentType DOMImplementation::createDocumentType
([ string
$qualifiedName = NULL
[, string $publicId = NULL
[, string $systemId = NULL
]]] )Creates an empty DOMDocumentType object. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. Parameter-Liste
Rückgabewerte
A new DOMDocumentType node with its
ownerDocument set to Fehler/Exceptions
Diese Methode kann statisch aufgerufen werden, dies wird aber einen Beispiele
Beispiel #1 Creating a document with an attached DTD
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE graph SYSTEM "graph.dtd"> <graph/> Siehe auch
|