Saxon API for .NET |

# XPathSelector Class

An `XPathSelector` represents a compiled and loaded XPath expression ready for execution. The `XPathSelector` holds details of the dynamic evaluation context for the query.

For a list of all members of this type, see XPathSelector Members.

System.Object
XPathSelector

public class XPathSelector : IEnumerable

#### Remarks

An `XPathSelector` should not be used concurrently in multiple threads. It is safe, however, to reuse the object within a single thread to run the same query several times. Running the query does not change the context that has been established.

An `XPathSelector` is always constructed by running the `Load` method of an `XPathExecutable`.

#### Requirements

Namespace: Saxon.Api

Assembly: saxon8api (in saxon8api.netmodule)

#### See Also

XPathSelector Members | Saxon.Api Namespace