Namespaces and prefixes used in the XPath.
Dispose the object.
It releases the managed resource and unregisters it from FinalizationRegistry. This ensures that the release of the managed resource doesn’t have to wait until the object is garbage collected.
To avoid resource leaks,
explicitly call the Dispose
method or use the using
declaration to declare the object.
Static
compileCreate a new XPath object.
The XPath selector string.
Optional
namespaces: NamespaceMapNamespace map for prefixes used in the xpathStr
.
The XPath object.
At the time of creation, this object compiles the XPath expression, which can be reused multiple times, even for different documents.
Note: This object requires to be disposed explicitly.