<xml></xml>

Saxon API for .NET |

# XPathCompiler Class

An XPathCompiler object allows XPath queries to be compiled. The compiler holds information that represents the static context for the expression.

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

System.Object
XPathCompiler

public class XPathCompiler

#### Remarks

To construct an XPathCompiler, use the factory method `newXPathCompiler` on the `Processor` object.

An XPathCompiler may be used repeatedly to compile multiple queries. Any changes made to the XPathCompiler (that is, to the static context) do not affect queries that have already been compiled. An XPathCompiler may be used concurrently in multiple threads, but it should not then be modified once initialized.

#### Requirements

Namespace: Saxon.Api

Assembly: saxon8api (in saxon8api.netmodule)

#### See Also

XPathCompiler Members | Saxon.Api Namespace