Class DocumentBuilder
Class DomDestination
Class DynamicContext
Class DynamicError
Class EmptyEnumerator
Class ExtensionFunctionCall
Class NullDestination
Class Processor
Class QName
Class SchemaManager
Class SchemaValidator
Class Serializer
Class StaticContext
Class StaticError
Class TextWriterDestination
Class XPathCompiler
Class XPathExecutable
Class XPathSelector
Class XQueryCompiler
Class XQueryEvaluator
Class XQueryExecutable
Class XdmAnyFunctionType
Class XdmAnyItemType
Class XdmAnyNodeType
Class XdmAtomicType
Class XdmAtomicValue
Class XdmDestination
Class XdmEmptySequence
Class XdmFunctionItem
Class XdmItem
Class XdmItemType
Class XdmNode
Class XdmNodeKind
Class XdmSequenceType
Class XdmValue
Class XmlDestination
Class XsltCompiler
Class XsltExecutable
Class XsltTransformer
Enum RecoveryPolicy
Enum SchemaValidationMode
Enum TreeModel
Enum WhitespacePolicy
Enum XdmAxis
Interface IMessageListener
Interface IQueryResolver
Interface IResultDocumentHandler
Interface IXdmEnumerator
Interface IXmlLocation
Interface SchemaResolver
public class XPathExecutable
An XPathExecutable
represents the compiled form of an XPath expression.
To evaluate the expression,
it must first be loaded to form an XPathSelector
.
An XPathExecutable
is immutable, and therefore thread-safe. It is simplest to
load a new XPathSelector
each time the expression is to be evaluated. However, the
XPathSelector
is serially reusable within a single thread.
An XPathExecutable
is created by using one of the Compile
methods on the XPathCompiler
class.
Method Summary | |
---|---|
IEnumerator |
EnumerateExternalVariables()
Get a list of external variables used by the expression. This will include both variables
that were explicitly
declared to the |
XPathSelector |
Load() Load the compiled XPath expression to prepare it for execution. |
Method Detail |
---|
public IEnumerator EnumerateExternalVariables()
Get a list of external variables used by the expression. This will include both variables
that were explicitly
declared to the XPathCompiler
, and (if the AllowUndeclaredVariables
option was set) variables that
are referenced within the expression but not explicitly declared.
QName
.
public XPathSelector Load()
Load the compiled XPath expression to prepare it for execution.
XPathSelector
. The returned XPathSelector
can be used to
set up the dynamic context, and then to evaluate the expression.