@designliquido/xpath
    Preparing search index...

    Class ElementTest

    ElementTest: element() or element(name) or element(name, type)

    Examples:

    • element() - any element
    • element(book) - element with local name "book"
    • element(*, xs:integer) - any element with xs:integer type
    • element(book, xs:date) - element "book" with xs:date type

    Hierarchy

    • KindTestImpl
      • ElementTest
    Index

    Constructors

    • Parameters

      • OptionalelementName: string
      • OptionalelementType: string

      Returns ElementTest

    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

    • Check if a value matches this ItemType

      Parameters

      • value: any

      Returns boolean