lib/happymapper.rb in happymapper-0.1.3 vs lib/happymapper.rb in happymapper-0.1.4
- old
+ new
@@ -71,10 +71,10 @@
nodes = if namespace
node = doc.respond_to?(:root) ? doc.root : doc
node.register_default_namespace(namespace.chop)
node.find("#{namespace}#{get_tag_name}")
else
- doc.find(get_tag_name)
+ doc.find("//#{get_tag_name}")
end
collection = create_collection(nodes, namespace)
# per http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Document.html#M000354
\ No newline at end of file