use strict; use warnings; use Test::More; use XML::Feed; my $content; { local $/; $content = ; } my $feed = XML::Feed->parse( \$content ); my @links = map { $_->link } $feed->entries; # RT 53661 - GH #45 is_deeply( \@links, ['/earthquakes/recenteqsww/Quakes/us2010rkb8.php'] ) or diag explain \@links; done_testing; __DATA__ 2010-01-13T17:24:37Z USGS M5+ Earthquakes Real-time, worldwide earthquake list for the past 7 days U.S. Geological Survey http://earthquake.usgs.gov/ /favicon.ico urn:earthquake-usgs-gov:us:2010rkb8M 5.3, Tonga2010-01-13T16:21:24Z

Wednesday, January 13, 2010 16:21:24 UTC
Thursday, January 14, 2010 06:21:24 AM at epicenter

Depth: 10.00 km (6.21 mi)

]]>
-15.7409 -174.6951-10000