#!C:\strawberry\perl\bin\perl.exe use strict; use warnings; use XML::LibXML; use XML::LibXML::XPathContext; use Data::Dump qw(dump); my $filename = 'georss.xml'; my $dom = XML::LibXML->load_xml(location => $filename); my $xpc = XML::LibXML::XPathContext->new($dom); $xpc->registerNs(dft => "http://www.w3.org/2005/Atom"); $xpc->registerNs(georss => "http://www.georss.org/georss"); my $title = $xpc->findnodes('//dft:title'); print "title $title\n"; my $point = $xpc->findnodes('//georss:where/point'); print "point $point\n"; #### Earthquakes International earthquake observation labs 2005-12-13T18:30:02Z Dr. Thaddeus Remor tremor@quakelab.edu urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 M 3.2, Mona Passage urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 2005-08-17T07:02:32Z We just had a big one. 45.256 -71.92