package Text::Microformat::Plugin::Parser::XML; use strict; use warnings; use XML::TreeBuilder; sub parse { my $c = shift; if (!$c->tree and $c->opts->{content_type} =~ /xml/i) { my $tree = XML::TreeBuilder->new; $tree->parse($c->content); $c->tree($tree); } return $c->NEXT::parse(@_); } =head1 NAME Text::Microformat::Plugin::Parser::XML - XML parser plugin for Text::Microformat =head1 SEE ALSO L =head1 AUTHOR Keith Grennan, C<< >> =head1 BUGS Log bugs and feature requests here: L =head1 SUPPORT Project homepage: L =head1 COPYRIGHT & LICENSE Copyright 2007 Keith Grennan, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut 1;