Sign in Join
FPDoc Onlineexperiment

TXPathExprNode.EvalPredicate function

Member of TXPathExprNodeprotectedIn unit Laz2_XPath

Evaluates an XPath Predicate Expression.

Declaration

pascal
function EvalPredicate(AContext: TXPathContext; 
 AEnvironment: TXPathEnvironment): Boolean

Arguments

AContext

Context node for the expression.

AEnvironment

XPath environment for the evaluation.

Function result

Boolean result for the evaluated expression.

Description

EvalPredicate is a Boolean function used to evaluate an XPath Predicate Expression. EvalPredicate calls the Evaluate method using the specified Content node and Environment. An Expression that evaluates to a numeric value is considered to be True when the result matches the ContextPosition in the AContext argument.

EvalPredicate is used in the implementation of other specialized Predicate Expressions types descended from TXPathExprNode.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.