lib/voruby/adql/ext.rb in voruby-1.1 vs lib/voruby/adql/ext.rb in voruby-1.1.1

- old
+ new

@@ -1,12 +1,11 @@ class REXML::Element def find_attribute(attr_name, ns=nil) if !ns return self.attributes[attr_name] else - ns_index = self.namespaces.index(ns) - if ns_index - ns_prefix = self.prefixes[ns_index] + ns_prefix = self.namespaces.index(ns) + if ns_prefix return self.attributes["#{ns_prefix}:#{attr_name}"] else return nil end end \ No newline at end of file