X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5f292cf21a5fa72733080a294484e0e4208e0e7..a8d6714aebfacfc32808a5aca41f6dae785a14cf:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index c223f0580..adf34684f 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -307,4 +307,16 @@ module OSM return @doc.to_s end end + + class API + def get_xml_doc + doc = XML::Document.new + doc.encoding = 'UTF-8' + root = XML::Node.new 'osm' + root['version'] = API_VERSION + root['generator'] = 'OpenStreetMap server' + doc.root = root + return doc + end + end end