XPath object.

This object compiles the xpath at creation, which could be reused many times, even for different documents.

Note: This object requires to be disposed explicitly.

Hierarchy (view full)

Accessors

Methods

  • Dispose the object.

    It releases the managed resource and unregisters them from FinalizationRegistry. So the release of the managed resource won't need to wait until this object is garbage collected.

    This needs to be called explicitly to avoid resource leak, or declare the object with using declaration.

    Returns void

  • Create a new XPath object.

    Parameters

    • xpathStr: string

      The XPath string

    • Optionalnamespaces: NamespaceMap

      Namespace map for prefixes used in the xpathStr

    Returns XmlXPath