Test::XML(3pm) | User Contributed Perl Documentation | Test::XML(3pm) |
Test::XML - Compare XML in perl tests
use Test::XML tests => 3; is_xml( '<foo />', '<foo></foo>' ); # PASS is_xml( '<foo />', '<bar />' ); # FAIL isnt_xml( '<foo />', '<bar />' ); # PASS is_well_formed_xml('<foo/>'); # PASS is_well_formed_xml('<foo>'); # FAIL
This module contains generic XML testing tools. See below for a list of other modules with functions relating to specific XML modules.
Returns true or false, depending upon test success.
There are several features of XML::SemanticDiff that may suprise you if you are not aware of them. In particular:
Test::XML::SAX, Test::XML::Twig.
Test::More, XML::SemanticDiff.
Dominic Mitchell, <cpan2 (at) semantico.com>
Copyright 2002 by semantico
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-06-18 | perl v5.34.0 |