Subject: | wrong condition interpretation for attribute value 0 |
condition '*[@att="0"]' doesn't work, as demonstrated by the attached test case.
#!/usrb/bin/perl
use XML::Twig;
my $twig = XML::Twig->new();
$twig->parse(\*DATA);
my $root = $twig->root();
print scalar $root->children('*[@id="0"]');
print scalar $root->children('*[@id="1"]');
__DATA__
<?xml version="1.0" encoding="ISO-8859-1"?>
<foo>
<bar id="0"/>
<bar id="1"/>
</foo>