@designliquido/xpath
    Preparing search index...

    Class DocumentNodeTest

    DocumentNodeTest: document-node() or document-node(element(...))

    Matches the document node (root). Can optionally specify a required element test.

    Examples:

    • document-node() - any document node
    • document-node(element(book)) - document containing a "book" element
    • document-node(element()) - document containing any root element

    Hierarchy

    • KindTestImpl
      • DocumentNodeTest
    Index

    Constructors

    Properties

    name: string

    Human-readable name of the item type

    nodeKind: string

    The node kind being tested Possible values: 'element', 'attribute', 'text', 'comment', 'processing-instruction', 'document-node'

    nodeName?: string

    Optional name constraint for the node

    nodeType?: string

    Optional type constraint for the node

    isWildcardName?: boolean

    Indicates if name is a wildcard (*)

    Methods

    • Parameters

      • value: any

      Returns boolean