[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XPath' (#lazutils)

TXPathExpression.Create

Constructor for the class instance.

Declaration

Source position: laz2_xpath.pas line 457

public constructor TXPathExpression.Create(

  AScanner: TXPathScanner;

  CompleteExpression: Boolean;

  AResolver: TXPathNSResolver = Nil

);

Arguments

AScanner

  

Lexical scanner/parser used to evaluate the expression.

CompleteExpression

  

The XPath expression evaluated in the class instance.

AResolver

  

Namespace resolver used to evaluate the expression.

Description

Create is the constructor for the class instance, and calls the inherited method on entry. Create uses AResolver as the value for the Resolver property in AScanner. It also updates the internal root node for the expression retrieved by calling the ParseOrExpr method in AScanner.

Create raises an EXPathEvaluationError exception if the scanner contains unused token after evaluating the XPath expression and the CompleteExpression argument is set to True.


Version 4.0 Generated 2025-05-03 Home