Document.CreateDocumentType

Document.CreateDocumentType method

The method returns a DocumentType object which can either be used with CreateDocument upon document creation or can be put into the document via methods like InsertBefore or ReplaceChild.

public DocumentType CreateDocumentType(string name, string publicId, string systemId, 
    string internalSubset)
ParameterTypeDescription
nameStringIs a DOMString containing the qualified name, like svg:svg.
publicIdStringIs a DOMString containing the PUBLIC identifier.
systemIdStringIs a DOMString containing the SYSTEM identifier.
internalSubsetStringThe internal subset.

Return Value

The DocumentType.

See Also