CommentTest

Check for comment nodes.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

CommentTest

graphics/CommentTest.png

Description

A CommentTest is one of a number of node tests that are used in a step expression. The expression comment() is true for any comment node.

Example

  • Select all comment nodes in the current collection:

    input()//comment()