Tree::...e::Step(3pm)

πŸ“¦
version 0.05 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ 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_ancestor
  • axis_ancestor_or_self
  • axis_attribute
  • axis_child
  • axis_descendant
  • axis_descendant_or_self
  • axis_following
  • axis_following_sibling
  • axis_parent
  • axis_preceding
  • axis_preceding_sibling
  • 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
  • test_any
  • test_attr_name
  • test_attr_any
  • test_nt_text
  • test_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