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

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

πŸ’– NAME πŸ’–

Tree::XPathEngine::Root β€” the "take me home" of XPath expressions, aka going back to the root node inside an XPath expression. 🏠✨

This page lives in the Perl docs under the manual name Tree::...e::Root(3pm) (yes bestie, that's the whole vibe β€” a lil truncated, still iconic πŸ’…).


πŸŽ€ METHODS πŸŽ€

🌸 new

Constructor. That's it, that's the whole entry β€” the docs just hand you new and let you live your life. No extra lore, no secret options. 🫢

🌸 evaluate ($nodeset)

Bestie, this one returns a nodeset containing the root node of the first element of the nodeset. πŸ“πŸ¦‹

So you hand it a nodeset, it peeks at the first element in there, and walks alllll the way back up to the root. Main character energy: no matter how deep the plot goes, we're going back to where it all started. πŸ‘‘

🌸 as_string

Also here! The docs list it, and that's genuinely all they say about it. πŸ™ˆ

🌸 as_xml

Dumps the action as XML, specifically as:

<Root/>

Literally just that. Self-closing. Minimalist. Ate. ✨


πŸ’€ Quick note: new, as_string and as_xml come with no extra description in the original docs, so there's nothing more to spill β€” no cap, I'm not about to make stuff up.

Written and maintained by the Perl crew, this page shipped with perl v5.36.0 on 2022-11-20, and it's filed under Tree::...e::Root(3pm). Stay rooted, bestie. πŸŒˆπŸ’œπŸŒ±

πŸ“¦ where this page comes from