Table of Contents

Method CreateDocumentType

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

CreateDocumentType(string, string, string)

Creates an empty IDocumentType node. Entity declarations and notations are not made available.

IDocumentType CreateDocumentType(string qualifiedName, string publicId, string systemId)

Parameters

qualifiedName string

qualified name of the document type to be created.

publicId string

external subset public identifier.

systemId string

external subset system identifier.

Returns

IDocumentType

A new IDocumentType node with OwnerDocument set to null.

Remarks

Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a IDocumentType. HTML-only DOM implementations do not need to implement this method.

Exceptions

DomException

INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.

NAMESPACE_ERR: Raised if the qualifiedName is malformed.