On 6/16/07, hinsen <h.gildhoff / web.de> wrote:
> Even this call is not
> working (it doesn't hit any node):

This seemed to work for me:
require 'rexml/document'
=> true

INPUT = <<INPUT_XML
<rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xCal="urn:ietf:params:xml:ns:xcal">
  <channel>
    <title>Zvents search for events matching   within 60 miles of 6</title>
    <item>
      <pubDate>Wed, 30 May 2007 07:11:46 +0000</pubDate>
      <dc:date>2007-05-30T07:11:46+0000</dc:date>
    </item>
  </channel>
</rss>
INPUT_XML
=> "<rss xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"
version=\"2.0\"\nxmlns:dc=\"http://purl.org/dc/elements/1.1/\"\nxmlns:xCal=\"urn:ietf:params:xml:ns:xcal\">\n
 <channel>\n    <title>Zvents search for events matching   within 60
miles of 6</title>\n    <item>\n      <pubDate>Wed, 30 May 2007
07:11:46 +0000</pubDate>\n
<dc:date>2007-05-30T07:11:46+0000</dc:date>\n    </item>  \n
</channel>  \n</rss>  \n"

xml = REXML::Document.new(INPUT)
=> <UNDEFINED> ... </>

a = REXML::XPath.match(xml, "/rss/channel/item/dc:date", {
"dc"=>"http://purl.org/dc/elements/1.1/" })
=> [<dc:date> ... </>]

a.to_s
=> "<dc:date>2007-05-30T07:11:46+0000</dc:date>"