@designliquido/xpath
    Preparing search index...

    Interface XPathNode

    Represents a DOM-like node interface for XPath evaluation. This is compatible with browser DOM nodes and can be extended for other implementations.

    interface XPathNode {
        nodeType: number;
        nodeName: string;
        localName?: string;
        namespaceUri?: string;
        textContent?: string;
        parentNode?: XPathNode;
        childNodes?: ArrayLike<XPathNode>;
        attributes?: ArrayLike<XPathNode>;
        nextSibling?: XPathNode;
        previousSibling?: XPathNode;
        ownerDocument?: XPathNode;
        documentElement?: XPathNode;
        target?: string;
        getAttribute?(name: string): string;
        compareDocumentPosition?(other: XPathNode): number;
    }
    Index

    Properties

    nodeType: number
    nodeName: string
    localName?: string
    namespaceUri?: string
    textContent?: string
    parentNode?: XPathNode
    childNodes?: ArrayLike<XPathNode>
    attributes?: ArrayLike<XPathNode>
    nextSibling?: XPathNode
    previousSibling?: XPathNode
    ownerDocument?: XPathNode
    documentElement?: XPathNode
    target?: string

    Methods

    • Parameters

      • name: string

      Returns string