Subject: | findnodes with dashes |
use REST::Client;
my $mbz_db = REST::Client->new({ host => 'http://musicbrainz.org/ws/2' });
$mbz_db->GET("/release-group?artist=cc2c9c3c-b7bc-4b8b-84d8-4fbd8779e493");
my $xpath = $mbz_db->responseXpath();
my @arr1 = $xpath->findnodes('//release-group');
my @arr2 = $xpath->findnodes('//*[@id]');
print scalar(@arr1)."\n"; # 0
print scalar(@arr2)."\n"; # 17
LOLWUT?? The dash shouldn't make a difference. It's a legal QName.
Sorry if this was fixed already in 1.98, but a jump to that on Debian
would involve quite a few perl-core upgrades.