Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 77550
Status: rejected
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: BBYRD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.75
Fixed in: (no value)



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.
Crap. Firefox is hiding the xmlns, so this is another one of those annoying "gotta define a NS" things...
Hi Brendan, Just a note. Next time, please include the data in the file as a here-document string, instead of fetching it from the network. See what I wrote about it now here: http://www.shlomifish.org/open-source/resources/how-to-contribute-to-my-projects/ Regards, — Shlomi Fish On Wed May 30 23:48:26 2012, BBYRD wrote: Show quoted text
> 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"); Show quoted text
> 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.
Bleh! Commenting on that in RT re-opened the ticket (even though the Status was set to "Rejected"). Closing again.