NAME

File::Find::Rule::WellFormed - Find well-formed XML documents

SYNOPSIS

use File::Find::Rule qw(:WellFormed);

my @files = find(wellformed => in => $ENV{HOME});

DESCRIPTION

File::Find::Rule::WellFormed extends File::Find::Rule to find well-formed (or not well-formed) XML documents, by providing the wellformed test:

my @wellformed = File::Find::Rule->new
                                 ->file
                                 ->name('*.xml')
                                 ->wellformed
                                 ->in('/');

The wellformed test can be reversed, per standard File::Find::Rule semantics:

# OO
my @malformed = File::Find::Rule->new
                                ->file
                                ->name('*.xml')
                                ->not_wellformed
                                ->in('/');

# functional
my @malformed = find('!wellformed' => in => '/');

wellformed takes no arguments.

SEE ALSO

File::Find::Rule, File::Find::Rule::Extending, XML::Parser

AUTHOR

darren chamberlain <darren@cpan.org>