DOMImplementation::createDocumentTypeCreates an empty DOMDocumentType object Description
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. Parameters
Return Values
A new DOMDocumentType node with its
ownerDocument set to Errors/Exceptions
This method may be called statically, but will issue an Examples
Example #1 Creating a document with an attached DTD
<?php The above example will output: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE graph SYSTEM "graph.dtd"> <graph/> See Also
|