Create XML documents properly.

This commit is contained in:
Tom Hughes 2007-06-26 17:43:24 +00:00
parent e976a6df5a
commit be95e9c9db

View file

@ -3,7 +3,6 @@ class SearchController < ApplicationController
# Can search by tag k, v, or both (type->k,value->v)
# Can search by name (k=name,v=....)
before_filter :authorize
after_filter :compress_output
def search_all
@ -109,7 +108,7 @@ class SearchController < ApplicationController
# Print
doc = OSM::API.get_xml_doc
doc = OSM::API.new.get_xml_doc
nodes.each do |node|
doc.root << node.to_xml_node()
end