Michel Rodriguez > Tree-XPathEngine > Tree::XPathEngine::Step

Download:
Tree-XPathEngine-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Source  

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
syntax highlighting: