Initializes a new instance of the XmlDtd class.
The name of the DTD.
The system identifier of the DTD, excluding quotation marks.
The public identifier of the DTD, excluding quotation marks. If a public identifier is provided, a system identifier must be provided as well.
Gets the name of the DTD.
The name of the DTD.
Sets the name of the DTD.
The name of the DTD.
The name of the DTD.
Gets the parent of this node.
The parent of this node.
Gets the public identifier of the DTD, excluding quotation marks.
The public identifier of the DTD, excluding quotation marks. This value may be undefined.
Sets the public identifier of the DTD, excluding quotation marks. If a public identifier is provided, a system identifier must be provided as well.
The public identifier of the DTD, excluding quotation marks. This value may be undefined.
The public identifier of the DTD, excluding quotation marks. This value may be undefined.
Gets the system identifier of the DTD, excluding quotation marks.
The system identifier of the DTD, excluding quotation marks. This value may be undefined.
Sets the system identifier of the DTD, excluding quotation marks.
The system identifier of the DTD, excluding quotation marks. This value may be undefined.
The system identifier of the DTD, excluding quotation marks. This value may be undefined.
Inserts a new attribute-list declaration at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The text of the attribute-list declaration.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created attribute-list declaration.
Gets this node's children.
Throws an exception if this node cannot have any children. Consult the appropriate subclass documentation for more details.
This node's children.
Inserts a new comment at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The data of the comment.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created comment.
Inserts a new element declaration at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The text of the element declaration.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created element declaration.
Inserts a new entity declaration at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The text of the entity declaration.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created entity declaration.
Inserts the specified node into this node's children at the specified index. The node is not inserted if it is already present. If this node already has a parent, it is removed from that parent.
Only XmlComment, XmlDtdAttlist, XmlDtdElement, XmlDtdEntity, XmlDtdNotation, and XmlProcInst nodes can be inserted; otherwise an exception will be thrown.
The node to insert.
The index at which to insert the node. Nodes at or after the index are shifted to the right. If no index is specified, the node is inserted at the end.
The node inserted into this node's children, or undefined if no node was inserted.
Gets the node that follows this one, or undefined if no such node exists or if this node has no parent.
The node that follows this one, or undefined if no such node exists or if this node has no parent.
Inserts a new notation declaration at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The text of the notation declaration.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created notation declaration.
Inserts a new parameter entity reference at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The entity to reference.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created parameter entity reference.
Gets the node that is previous to this one, or undefined if no such node exists or if this node has no parent.
The node that is previous to this one, or undefined if no such node exists or if this node has no parent.
Inserts a new processing instruction at the specified index. If no index is specified, the node is inserted at the end of this node's children.
The target of the processing instruction.
The data of the processing instruction, or undefined if there is no target.
The index at which the node should be inserted. If no index is specified, the node is inserted at the end of this node's children.
The newly created processing instruction.
Removes this node from its parent if this node has a parent.
This node's parent, or undefined if it has no parent.
Removes the specified node from this node's children.
Throws an exception if this node cannot have any children, or if the specified node cannot be removed. Consult the appropriate subclass documentation for more details.
The node to remove.
Whether a node was removed.
Removes the node at the specified index from this node's children.
Throws an exception if this node cannot have any children, or if the node at the specified index cannot be removed. Consult the appropriate subclass documentation for more details.
The index at which the node to be removed is located.
The node that was removed.
Returns an XML string representation of this node.
Formatting options for the string representation.
An XML string representation of this node.
Returns the root node of the current hierarchy. If this node has no parent, this node itself is returned.
The root node of the current hierarchy.
Gets the parent of this node.
Generated using TypeDoc
Represents an XML document type definition (DTD).
An XML document type definition is structured as follows, where
{name}
is the name of the DTD,{sysId}
is the system identifier of the DTD,{pubId}
is the public identifier of the DTD, and{intSubset}
is the internal subset of the DTD:<!DOCTYPE {name} SYSTEM "{sysId}" PUBLIC "{pubId}" [ {intSubset} ]>
The
{name}
,{pubId}
, and{sysId}
values are properties of the node, while the{intSubset}
value consists of the children of this node.XmlDtd nodes can have an unlimited number of XmlComment, XmlDtdAttlist, XmlDtdElement, XmlDtdEntity, XmlDtdNotation, XmlDtdParamEntityRef, and XmlProcInst nodes.