From: Kouhei Sutou Date: 2002-09-28T03:01:59+09:00 Subject: Re: REXML namespace support From: Matt Gushee Subject: Re: REXML namespace support Date: Sat, 28 Sep 2002 02:41:44 +0900 Message-ID: <20020927173141.GD1574@swordfish> > Try this: > > (REXML::XPath.match(doc,'//*|//@*').detect \ > {|node| node.prefixes.include? 'foo'}).namespace('foo') Try this too: parser = REXML::SAX2Parser.new(xml) parser.listen(:start_prefix_mapping) do |prefix, uri| p uri if prefix == "foo" end parser.parse ====================== Kouhei Sutou kou@cneti.net