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

TStep

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements an XPath Location Step.

Declaration

Source position: laz2_xpath.pas line 231

type TStep = class(TXPathFilterNode)

public

  Axis: TAxis;

  

Axis type for the Location Step.

  NodeTestType: TNodeTestType;

  

Node Test Type for the Location Step.

  NodeTestString: DOMString;

  

Node Test Type as a String value.

  NSTestString: DOMString;

  

Namespace Test as a String value.

  constructor Create();

  

Constructor for the class instance.

  function Evaluate(); override;

  

Evaluates the XPath expression for the Location Step.

end;

Inheritance

TStep

  

Implements an XPath Location Step.

|

TXPathFilterNode

  

Implements an XPath Filter expression.

|

TXPathExprNode

  

Defines the base class used to evaluate XPath expressions.

|

TObject

Description

TStep is a TXPathFilterNode descendant used to implement a Location Step expression in the XPath syntax. A location step expression contains an Axis name, a node test, and optional predicates that determine the items available in a node set. For example:

./child::book[@lang='en']

Use the constructor to specify the Axis and Node Test for the XPath expression. An overridden Evaluate method is provided to select the nodes included in the node set returned by the method.


Version 4.0 Generated 2025-05-03 Home