HTML::Linear::Path - represent paths inside HTML::Tree
version 0.002
use HTML::Linear::Path; my $level = HTML::Linear::Path->new({ address => q(0.1.1.3.0), attributes => { id => q(li1), }, strict => 0, tag => q(li), });
Lazy JSON::XS instance.
Location inside HTML::TreeBuilder tree.
Element attributes.
Stringified path representation.
Strict mode disables grouping by id, class or name attributes.
id
class
name
Tag name.
Build a quick & dirty string representation of a path the HTML::TreeBuilder structure.
Build a nice XPath representation of a path inside the HTML::TreeBuilder structure.
Quote attribute values for XPath representation.
Help to make a fancy XPath.
Wrap XPath components to produce fancy syntax highlight.
The format is:
( array => ['' => ''], attribute => ['' => ''], equal => ['' => ''], number => ['' => ''], separator => ['' => ''], sigil => ['' => ''], tag => ['' => ''], value => ['' => ''], )
Stanislaw Pusep <stas@sysd.org>
This software is copyright (c) 2012 by Stanislaw Pusep.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::Linear, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Linear
CPAN shell
perl -MCPAN -e shell install HTML::Linear
For more information on module installation, please visit the detailed CPAN module installation guide.