From: Keith Fahlgren Date: 2007-06-22T01:55:13+09:00 Subject: Re: REXML, XPath and Namespace On 6/16/07, hinsen wrote: > Even this call is not > working (it doesn't hit any node): This seemed to work for me: require 'rexml/document' => true INPUT = < Zvents search for events matching within 60 miles of 6 Wed, 30 May 2007 07:11:46 +0000 2007-05-30T07:11:46+0000 INPUT_XML => "\n \n Zvents search for events matching within 60 miles of 6\n \n Wed, 30 May 2007 07:11:46 +0000\n 2007-05-30T07:11:46+0000\n \n \n \n" xml = REXML::Document.new(INPUT) => ... a = REXML::XPath.match(xml, "/rss/channel/item/dc:date", { "dc"=>"http://purl.org/dc/elements/1.1/" }) => [ ... ] a.to_s => "2007-05-30T07:11:46+0000"