NAME
HTML::Object::XPath::LocationPath - HTML Object XPath Location Path
SYNOPSIS
use HTML::Object::XPath::LocationPath;
my $this = HTML::Object::XPath::LocationPath->new ||
die( HTML::Object::XPath::LocationPath->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
This module represents a XML LocationPath.
CONSTRUCTOR
Takes no argument and returns a new array-based object.
METHODS
as_string
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_xml
Calls as_xml
on each elements in the current object array and returns the concatenated string enclosed in <LocationPath> and </LocationPath>
evaluate
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.
new_nodeset
Returns a new HTML::Object::XPath::NodeSet passing it whatever argument was provided.
new_root
Returns a new HTML::Object::XPath::Root passing it whatever argument was provided.
push
Add the elements provided to the object array.
set_root
Add a new root object as the first element of our internal array.
AUTHOR
Jacques Deguest <jack@deguest.jp>
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 & 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.