1 class ApiController < ApplicationController
6 doc = XML::Document.new
8 root = XML::Node.new 'osm'
9 root['version'] = '0.4'
10 root['generator'] = 'OpenStreetMap server'
13 render :text => doc.to_s
15 #el1 = XML::Node.new 'node'
16 #el1['id'] = self.id.to_s
17 #el1['lat'] = self.latitude.to_s
18 #el1['lon'] = self.longitude.to_s
19 #Node.split_tags(el1, self.tags)
20 #el1['visible'] = self.visible.to_s
21 #el1['timestamp'] = self.timestamp.xmlschema