WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:xpatheval
Description:The active:xpatheval service performs an xpath evaluation on an XML document
Id:apache.XPathEval
Category:accessor
Identifier Syntax

xpatheval is an accessor using Active URI syntax with the following base identifiers:

Base
active:xpatheval

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operand
Mandatory
Representation (DOM)XML document to which the XPath expression is applied
operator
Mandatory
Representation (java.lang.String)XPath 1.0 expression
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The following response representations can be returned for SOURCE requests:

SOURCE Representations
java.lang.Boolean

This accessor throws no documented exceptions.

Import Requirements

To use xpatheval accessor you must import the module urn:org:netkernel:xml:core:

<import>
  <uri>urn:org:netkernel:xml:core</uri>
</import>

When a request with the SOURCE verb is issued to active:xpatheval the XPath expression specified in the required operator argument is used against the XML document specified in the required operand argument. By default, the response representation returned is an java.lang.Boolean object.

The operator argument specifies the XPath 1.0 expression and must be transreptable to a IDeterminateString.

See the optional Saxon module for XPath 2.0 support.