Saxon API for .NET |

# XQueryCompiler Class

An XQueryCompiler object allows XQuery queries to be compiled.

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

System.Object
XQueryCompiler

public class XQueryCompiler

#### Remarks

To construct an `XQueryCompiler`, use the factory method `newXQueryCompiler` on the `Processor` object.

The `XQueryCompiler` holds information that represents the static context for the queries that it compiles. This information remains intact after performing a compilation. An `XQueryCompiler` may therefore be used repeatedly to compile multiple queries. Any changes made to the `XQueryCompiler` (that is, to the static context) do not affect queries that have already been compiled. An `XQueryCompiler` 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

XQueryCompiler Members | Saxon.Api Namespace