New to Telerik UI for WPF? Start a free 30-day trial

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public interface IDomImplementation

Methods

Creates an XML

       <pre><code class="lang-csharp">Document</code></pre>

object of the specified type with its document element. HTML-only DOM implementations do not need to implement this method.

C#
IDocument CreateDocument(string namespaceUri, string qualifiedName, IDocumentType documentType)
Parameters:namespaceUristringqualifiedNamestringdocumentTypeIDocumentType

IDocument

A new

        <pre><code class="lang-csharp">Document</code></pre>

object.

DomException

       INVALID_CHARACTER_ERR: Raised if the specified qualified name 
       contains an illegal character.
       <br />NAMESPACE_ERR: Raised if the 

       <pre><code class="lang-csharp">qualifiedName</code></pre>

is malformed, if the

       <pre><code class="lang-csharp">qualifiedName</code></pre>

has a prefix and the

       <pre><code class="lang-csharp">namespaceURI</code></pre>

is

csharp
null

, or if the

       <pre><code class="lang-csharp">qualifiedName</code></pre>

has a prefix that is "xml" and the

       <pre><code class="lang-csharp">namespaceURI</code></pre>

is different from " http://www.w3.org/XML/1998/namespace" .
WRONG_DOCUMENT_ERR: Raised if

       <pre><code class="lang-csharp">doctype</code></pre>

has already been used with a different document or was created from a different implementation.

C#
IDocumentType CreateDocumentType(string qualifiedName, string publicId, string systemId)
Parameters:qualifiedNamestringpublicIdstringsystemIdstringReturns:

IDocumentType

Test if the DOM implementation implements a specific feature.

C#
bool HasFeature(string feature, string version)
Parameters:featurestringversionstring

bool

csharp
true

if the feature is implemented in the specified version,

       <pre><code class="lang-csharp">false</code></pre>

otherwise.