Click or drag to resize
IDomImplementationCreateDocument Method
Creates an XML
Document
object of the specified type with its document element. HTML-only DOM implementations do not need to implement this method.

Namespace: Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom
Assembly: Telerik.Windows.Documents.FormatProviders.Html (in Telerik.Windows.Documents.FormatProviders.Html.dll) Version: 2018.2.620.40 (2018.2.620.40)
Syntax
IDocument CreateDocument(
	string namespaceUri,
	string qualifiedName,
	IDocumentType documentType
)

Parameters

namespaceUri
Type: SystemString
qualifiedName
Type: SystemString
documentType
Type: Telerik.Windows.Documents.FormatProviders.Html.Parsing.DomIDocumentType

Return Value

Type: IDocument
A new
Document
object.
Exceptions
ExceptionCondition
DomException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the
qualifiedName
is malformed, if the
qualifiedName
has a prefix and the
namespaceURI
is
null
, or if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from " http://www.w3.org/XML/1998/namespace" .
WRONG_DOCUMENT_ERR: Raised if
doctype
has already been used with a different document or was created from a different implementation.
See Also