Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XmlDtdAttlist

Represents an XML attribute-list declaration in a document type definition.

An XML attribute-list declaration is structured as follows, where {text} is the text of the declaration:

<!ATTLIST {text}>

The {text} value is a property of this node.

XmlDtdAttlist nodes cannot have any children.

Hierarchy

Index

Constructors

constructor

  • Initializes a new instance of the XmlDtdAttlist class.

    Parameters

    • text: string

      The text associated with the XML attribute-list declaration.

    Returns XmlDtdAttlist

Properties

Protected _children

_children: XmlNode[]

Private _text

_text: string

Accessors

parent

  • Gets the parent of this node.

    Returns XmlNode

    The parent of this node.

text

  • get text(): string
  • set text(text: string): void
  • Gets the text associated with the XML attribute-list declaration.

    Returns string

    The text associated with the XML attribute-list declaration.

  • Sets the text associated with the XML attribute-list declaration.

    Parameters

    • text: string

      The text associated with the XML attribute-list declaration.

    Returns void

    The text associated with the XML attribute-list declaration.

Methods

children

insertChild

next

  • Gets the node that follows this one, or undefined if no such node exists or if this node has no parent.

    Returns XmlNode

    The node that follows this one, or undefined if no such node exists or if this node has no parent.

prev

  • Gets the node that is previous to this one, or undefined if no such node exists or if this node has no parent.

    Returns XmlNode

    The node that is previous to this one, or undefined if no such node exists or if this node has no parent.

remove

  • Removes this node from its parent if this node has a parent.

    Returns XmlNode

    This node's parent, or undefined if it has no parent.

removeChild

  • removeChild(node: XmlNode): boolean

removeChildAtIndex

  • removeChildAtIndex(index: number): XmlNode

toString

  • Returns an XML string representation of this node.

    Parameters

    Returns string

    An XML string representation of this node.

top

  • Returns the root node of the current hierarchy. If this node has no parent, this node itself is returned.

    Returns XmlNode

    The root node of the current hierarchy.

up

  • Gets the parent of this node.

    Returns XmlNode

    The parent of this node.

Generated using TypeDoc