| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
Parser
Parser.XML
Parser.XML.Tree
Parser.XML.Tree.AbstractSimpleNode

# Method Parser.XML.Tree.AbstractSimpleNode()->`[]()

Method `[]

  `AbstractSimpleNode `[](int pos)`

Description

  The [] operator indexes among the node children, so `node[0]` returns the first node and `node[-1]` the last.

Note

  The [] operator will select a node from all the nodes children, not just its element children.