Options
All
  • Public
  • Public/Protected
  • All
Menu

Allows further operations specific to XML elements

Hierarchy

  • TreeNode
    • XmldocTreeNode

Implemented by

Index

Properties

$children

$children: XmldocTreeNode[]

Specialize return type

returns

$name

$name: string

Name of the node, available in path expressions

Optional $offset

$offset: number

Offset from 0 in the file, if available

Optional $parent

$parent: TreeNode

Used to evaluate ancestor and other such predicates efficiently. If not available, backup resolution will attempt to navigate from document root if available.

Optional $value

$value: string

Value. If this is a terminal node, its own value, which will always be available. If it's a non-terminal, the value is not guaranteed to be available. If it is, it will be the text from the offset to the end of the last token. This preserves white space between non-terminals.

innerValue

innerValue: string

Value inside the element: Not the same as its value

Generated using TypeDoc