---
name: "Tree::XPathEngine::Step"
section: "3pm"
platform: "linux"
package: "libtree-xpathengine-perl"
version: "0.05-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tree::XPathEngine::Step"
---

# Tree::XPathEngine::Step(3pm)

implements a step in an XPath location path

## NAME

Tree::XPathEngine::Step - implements a step in an XPath location path

## METHODS

These methods should probably not be called from outside of Tree::XPathEngine.

### new

create the step

### evaluate $nodeset

evaluate the step against a nodeset

### evaluate\_node $node

evaluate the step against a single node

### axis methods

All these methods return the nodes along the chosen axis

- axis\_ancestor =item axis\_ancestor\_or\_self =item axis\_attribute =item axis\_child =item axis\_descendant =item axis\_descendant\_or\_self =item axis\_following =item axis\_following\_sibling =item axis\_parent =item axis\_preceding =item axis\_preceding\_sibling =item axis\_self

  ### node\_test

apply the node test to the nodes gathered by the axis method

### test\_attribute

test on attribute existence

### filter\_by\_predicate

filter the results on a predicate

### as\_string

dump the step as a string

### as\_xml

dump the step as xml

## Test type constants

These constants are used in this package and in Tree::XPathEngine to describe  the type of test in a step:

- test\_name =item test\_any =item test\_attr\_name =item test\_attr\_any =item test\_nt\_text =item test\_nt\_node
