Subject: | Compare processing instructions |
PIs are not currently considered in the XML comparison. Each PI has a name and a value, so the following should not pass but do:
use Test::More;
plan tests => 2;
use Test::XML::Ordered qw(is_xml_ordered);
is_xml_ordered(
[string => '<xml><?FOO stuff?></xml>'],
[string => '<xml><?FOO bar?></xml>'],
'XML structure'
);
is_xml_ordered(
[string => '<xml><?FOO stuff?></xml>'],
[string => '<xml><?BAR stuff?></xml>'],
'XML structure'
);
I do not know what the behavior in Test::XML (the only referenced distribution) is.