xml.DomDocument.createDocumentType
Creates a XML Document Type (DTD) xml.DomNode
object
for this xml.DomDocument
object.
Syntax
createDocumentType(
name STRING,
publicID STRING,
systemID STRING,
internalSubset STRING )
RETURNS xml.DomNode
- name defines the name of the document type.
- publicID defines the URI of the public identifier.
- systemID defines the URL of the system identifier (Specifies the file location of the external DTD subset).
- internalSubset defines the internal DTD subset.
Returns an xml.DomNode
object.
Usage
Creates a XML Document Type (DTD) xml.DomNode
object for this
xml.DomDocument
object; name is the name of the document type;
publicID is the URI of the public identifier or NULL
;
systemID is the URL of the system identifier or NULL
(Specifies
the file location of the external DTD subset); internalSubset is the internal DTD
subset or NULL
.
Returns an xml.DomNode
object, or an error if internalSubset
is malformed.
This method is not part of W3C standard API.
Only internal DTDs are supported.
The public identifier cannot be set without the system identifier.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).