HTML::O...th::Step(3)
π NAME π
okay so bestie, this is the manual page for HTML::Object::XPath::Step β the manual name up top is literally HTML::O...th::Step(3) (yes, with the little ellipsis, iykyk), and it's part of the User Contributed Perl Documentation set. Its one-line title is HTML Object XPath Step. That's the whole name situation, slay.
β¨ SYNOPSIS β¨
Here's the exact little starter pack, no cap:
use HTML::Object::XPath::Step;
my $this = HTML::Object::XPath::Step->new || die( HTML::Object::XPath::Step->error, "\n" );
π VERSION π
v0.2.0 β that's the version, bestie π
π¦ DESCRIPTION π¦
This module represents a XPath step. That's it. That's the description. It's giving "one job and it ate" β¨
π οΈ CONSTRUCTOR π οΈ
new
new takes a HTML::Object::XPath object, an axis, a test name and a literal, and returns a brand-new HTML::Object::XPath::Step object. Constructor behavior: iconic, no notes π
πΈ METHODS πΈ
as_stringβ returns a string representation of the step. Text-mode glow-up β¨as_xmlβ returns a string representation of the step as XML. Same step, XML flavor π¦axisβ set or get the axis. Direction check, periodt πaxis_ancestorβ give it a context and aHTML::Object::XPath::NodeSetobject, and it adds each parent until there are none found anymore, then returns the resulting node set. It's climbing the family tree, no cap πaxis_ancestor_or_selfβ this performs a similar function asaxis_ancestor, except it tests each node and adds it to the result before going up to the next parent. Main character checks themselves first, lowkey πaxis_attributeβ give it a context and a node set, and it adds each of its attribute objects to the resulting node set and returns it. Attribute girlies, rise πaxis_childβ give it a context and aHTML::Object::XPath::NodeSetobject, and it adds each of the children's nodes and returns the resulting set. Child nodes getting their moment πaxis_descendantβ give it a context and aHTML::Object::XPath::NodeSetobject, and it adds each of the children's nodes and its children after that until there is none, then returns the resulting set. Going down the tree like it's a group chat scroll πaxis_descendant_or_selfβ this performs a similar function asaxis_ancestor, except it tests each node and adds it to the result before going down to the next children's nodes. (Yes bestie, the original really saysaxis_ancestorhere β copy-paste moment, but we're keeping the exact tea β)axis_followingβ give it a context and a node set, and it gets all the first child in the tree of the element's next sibling. Following the vibe forward β¨axis_following_siblingβ give it a context and a node set, and it adds its next sibling to the resulting node set, then its sibling's sibling, and so forth. It returns the resulting node set. Sibling chain, slay π«Άaxis_methodβ set or get the axis method. Method to the axis, iykyk πaxis_namespaceβ give it a context and a node set, and it adds each namespace of thecontextinto the result. Namespace representation matters πΈaxis_parentβ give it a context and a node set, and it pushes (the original literally says "psh" π) the context's parent to the result array, if any. It returns the resulting node set. Parental supervision, but make it XPath πaxis_precedingβ give it a context and a node set, and it gets all the last child of the previous sibling hierarchy. It returns the resulting node set. Looking backward, but make it cute π¦axis_preceding_siblingβ give it a context and a node set, and it gets all the previous siblings recursively. It returns the resulting node set. Recursive sibling energy, periodt πaxis_selfβ give it a context and a node set, and it returns the node set with the providedcontextadded to it. Self-love, but literally πevaluateβ give it a node set or a node, and it evaluates each element of the node set by callingevaluate_nodefor each of them, adds the result to a new node set, and returns it. (The original says "nod set" β iconic typo, but you know what it means π)evaluate_nodeβ give it a context, and it evaluates the context by calling the method set inaxis_methodand passing it thecontextand a new node set. It returns the new node set. Evaluate era β¨filter_by_predicateβ give it a node set and a predicate, and it evaluates each element in the node set with the predicate. Based on the result, it adds the node evaluated to a new node set that is returned. Filtering, but make it fashion πliteralβ set or get the literal value. Literal queen πnew_nodesetβ returns a new node set object, passing it whatever arguments were provided. Fresh node set, just dropped πnode_testβ give it a node, and it tests it based on the test set for this step and returns a certain value; most of the time a simple true value. Vibe check, but for nodes πΈtestβ set or get the test name (or actually number) to be performed. Test name? Test number? It's giving flexible π¦test_attributeβ give it a node, and it tests its attribute. Attribute test, no cap πtest_namespaceβ give it a node, and it tests its name space. Namespace test, slay π
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β author icon, say thank you π
π₯ SEE ALSO π₯
go read these too, bestie:
HTML::Object::XPathHTML::Object::XPath::BooleanHTML::Object::XPath::ExprHTML::Object::XPath::FunctionHTML::Object::XPath::LiteralHTML::Object::XPath::LocationPathHTML::Object::XPath::NodeSetHTML::Object::XPath::NumberHTML::Object::XPath::RootHTML::Object::XPath::StepHTML::Object::XPath::Variable
π COPYRIGHT & LICENSE π
Copyright(c) 2021 DEGUEST Pte. Ltd. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie π«Ά β the footer tea is perl v5.42.2, dated 2026-02-15, with those User Contributed Perl Documentation vibes. mwah π
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms