File::Find::Rule::WellFormed - Find well-formed XML documents
use File::Find::Rule qw(:WellFormed);
my @files = find(wellformed => in => $ENV{HOME});
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.
the File::Find::Rule manpage, the File::Find::Rule::Extending manpage, the XML::Parser manpage
darren chamberlain <darren@cpan.org>