Hierarchy (view full)

Accessors

  • get content(): string
  • The content string of the node.

    Returns string

  • get firstChild(): null | XmlNode
  • The node of first child.

    Note that children of an element won't include attributes

    Return null if this node has no child

    Returns null | XmlNode

  • get lastChild(): null | XmlNode
  • The node of last child.

    Note that children of an element won't include attributes

    Return null if this node has no child

    Returns null | XmlNode

  • get line(): number
  • The line number of the node.

    Returns number

  • get parent(): null | XmlNode
  • The parent node of this node.

    For root node, it's parent is null.

    Returns null | XmlNode

Methods