HTML::Object::XPath::LocationPath - HTML Object XPath Location Path
use HTML::Object::XPath::LocationPath; my $this = HTML::Object::XPath::LocationPath->new || die( HTML::Object::XPath::LocationPath->error, "\n" );
v0.2.0
This module represents a XML LocationPath.
Takes no argument and returns a new array-based object.
For each element in it the current object array, this will call as_string and concatenate those strings separated by /. It returns the result as a regular perl string.
as_string
/
Calls as_xml on each elements in the current object array and returns the concatenated string enclosed in <LocationPath> and </LocationPath>
as_xml
Provided with a context, and this will call 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 in the node set.
evaluate
context
Returns a new HTML::Object::XPath::NodeSet passing it whatever argument was provided.
Returns a new HTML::Object::XPath::Root passing it whatever argument was provided.
Add the elements provided to the object array.
Add a new root object as the first element of our internal array.
Jacques Deguest <jack@deguest.jp>
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.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.