xpathify - output HTML document as a flat XPath/content list
version 0.002
xpathify [options] HTML
Represents a typical HTML document in a very verbose two-column mode. The first column is a XPath which locates each element inside the HTML tree. The second column is a respective content (if any).
/html/head/title/text() test 1 /html/body/h1/text() test 2 /html/body/p[1]/text() Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This.
Enable syntax highlight for XPath. By default, enabled automatically on interactive terminals.
Strict mode disables grouping by id, class or name attributes. The grouping is enabled by default.
id
class
name
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.