NAME
HTML::Object::XPath::Root - HTML Object
SYNOPSIS
use HTML::Object::XPath::Root;
my $root = HTML::Object::XPath::Root->new ||
die( HTML::Object::XPath::Root->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
This module represents a root element, which is the top element.
CONSTRUCTOR
new
Provided with a string, and this returns a new HTML::Object::XPath::Root object.
METHODS
as_string
Returns undef
in scalar context and an empty list in list context.
as_xml
Returns <Root/
>
evaluate
Provided with a node set object and this the first element in the node set, get its root node and return a new set with the node as its sole element.
new_nodeset
Returns a new HTML::Object::XPath::NodeSet passing it whatever argument was provided.
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.