Mark Stosberg

NAME

    Test::XML::Valid - Validate XML and XHTML

SYNOPSIS

  use Test::XML::Valid;

  xml_file_ok($xmlfilename);
  xml_string_ok($xml_string);

DESCRIPTION

Tests for Valid XHTML (using XML::LibXML). If the XML is not valid, a message will be generated with specific details about where the parser failed.

FUNCTIONS

xml_file_ok( $xmlfilename, $msg );

Checks that $xmlfilename validates. $msg is optional.

xml_string_ok( $xmlstring, $msg );

Checks that $xml_string validates. $msg is optional.

AUTHOR

    Mark Stosberg <mark@summersault.com>

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

perl(1).