DocumentCreateDocumentType Method

The method returns a DocumentType object which can either be used with DOMImplementation.createDocument upon document creation or can be put into the document via methods like Node.insertBefore() or Node.replaceChild().

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.5
Syntax
public DocumentType CreateDocumentType(
	string name,
	string publicId,
	string systemId,
	string internalSubset
)

Parameters

name
Type: SystemString

Is a DOMString containing the qualified name, like svg:svg.

publicId
Type: SystemString

Is a DOMString containing the PUBLIC identifier.

systemId
Type: SystemString

Is a DOMString containing the SYSTEM identifiers.

internalSubset
Type: SystemString
The internal subset.

Return Value

Type: DocumentType
The DocumentType.
Examples
var dt = document.CreateDocumentType("svg:svg", "-//W3C//DTD SVG 1.1//EN", "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd", "");
See Also