Tree::...e::Step(3pm)
π¦ NAME π¦
Tree::XPathEngine::Step β bestie, it implements a step in an XPath location path π
β¨ METHODS β¨
Okay so real talk: these methods should probably not be called from outside of Tree::XPathEngine. Like, they can be, nobody's stopping you, but they're the backstage crew, yk? π
πΈ 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_ancestoraxis_ancestor_or_selfaxis_attributeaxis_childaxis_descendantaxis_descendant_or_selfaxis_followingaxis_following_siblingaxis_parentaxis_precedingaxis_preceding_siblingaxis_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_nametest_anytest_attr_nametest_attr_anytest_nt_texttest_nt_node
and that's the whole page, no cap π§ This one came from the User Contributed Perl Documentation, it's chillin' at perl v5.36.0, dated 2022-11-20, and yeah the title got truncated to Tree::...e::Step(3pm) bc terminal columns are haters π stay hydrated, read your man pages, ily bye πβ¨π¦
π¦ where this page comes from
- debian bookworm: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms