AnyKindTest

Check for any kind of node.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

AnyKindTest

graphics/AnyKindTest.png

Description

An AnyKindTest is one of a number of node tests that are used in a step expression. The test node() is true for any kind of node.

Example

  • Select all nodes:

    input()/node()

    This test is true for all nodes found in the documents of the current collection. More precisely, since this query expression is equivalent to input()/child::node, it returns the sequence of children of document root nodes, i.e., root element nodes, comment nodes and processing instruction nodes.