The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

xpathify - output HTML document as a flat XPath/content list

VERSION

version 0.004

SYNOPSIS

    xpathify [options] HTML

DESCRIPTION

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.

OPTIONS

--help

This.

--[no]color

Enable syntax highlight for XPath. By default, enabled automatically on interactive terminals.

--[no]strict

Strict mode disables grouping by id, class or name attributes. The grouping is enabled by default.

AUTHOR

Stanislaw Pusep <stas@sysd.org>

COPYRIGHT AND LICENSE

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.