HTML::O...tionPath(3)

πŸ“¦ version 0.6.0, in alpine 3.24

✨ NAME ✨

okay bestie, welcome to HTML::O...tionPath(3) β€” the User Contributed Perl Documentation page for HTML::Object::XPath::LocationPath, aka the HTML Object XPath Location Path. it's giving XML location path energy, and we're keeping every detail. πŸ’–

🌸 SYNOPSIS 🌸

bestie, here's the whole vibe in code form β€” copy it exactly:

use HTML::Object::XPath::LocationPath;
my $this = HTML::Object::XPath::LocationPath->new ||
    die( HTML::Object::XPath::LocationPath->error, "\n" );

πŸ’– VERSION πŸ’–

the version is literally:

v0.2.0

πŸ¦‹ DESCRIPTION πŸ¦‹

This module represents a XML LocationPath. that's it, that's the description β€” short and iconic. πŸŽ€

πŸŽ€ CONSTRUCTOR πŸŽ€

Takes no argument and returns a new array-based object. zero arguments, bestie β€” no cap. ✨

πŸ‘‘ METHODS πŸ‘‘

okay, method time: each one has main character energy, but the facts are exactly the facts. 🫢

πŸ“ as_string πŸ“

For each element in the current object array, this calls as_string and concatenates those strings separated by /. It returns the result as a regular perl string. πŸ’…

🌈 as_xml 🌈

Calls as_xml on each element in the current object array and returns the concatenated string enclosed in <LocationPath> and </LocationPath>. iconic wrapper behavior, honestly.

πŸ¦‹ evaluate πŸ¦‹

Provided with a context, this calls evaluate for each object in the stack. It returns a new HTML::Object::XPath::NodeSet object containing the result, with the context initially provided as the first one in the node set. πŸ”₯

πŸ’œ new_nodeset πŸ’œ

Returns a new HTML::Object::XPath::NodeSet, passing it whatever argument was provided. simple, slay.

πŸŽ€ new_root πŸŽ€

Returns a new HTML::Object::XPath::Root, passing it whatever argument was provided. same energy, different class. ✨

⭐ push ⭐

Adds the elements provided to the object array. yes bestie, push them in. πŸ’…

🧚 set_root 🧚

Adds a new root object as the first element of our internal array. first place, main character. πŸ‘‘

πŸ’Œ AUTHOR πŸ’Œ

Jacques Deguest <jack@deguest.jp> β€” that's the author, bestie. πŸ’–

πŸ”­ SEE ALSO πŸ”­

  • HTML::Object::XPath
  • HTML::Object::XPath::Boolean
  • HTML::Object::XPath::Expr
  • HTML::Object::XPath::Function
  • HTML::Object::XPath::Literal
  • HTML::Object::XPath::LocationPath
  • HTML::Object::XPath::NodeSet
  • HTML::Object::XPath::Number
  • HTML::Object::XPath::Root
  • HTML::Object::XPath::Step
  • HTML::Object::XPath::Variable

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.

okay byeee πŸ’… β€” this page is signed off with perl v5.42.2, dated 2026-02-15, and the footer stamp HTML::O...tionPath(3). periodt. 🌈

πŸ“¦ where this page comes from