end
def to_xml
- doc = XML::Document.new
- doc.encoding = 'UTF-8'
- root = XML::Node.new 'osm'
- root['version'] = '0.4'
- root['generator'] = 'OpenStreetMap server'
-
- doc.root = root
-
- root << to_xml_node()
+ doc = OSM::API.new.get_xml_doc
+ doc.root << to_xml_node()
return doc
end
el1['id'] = self.id.to_s
el1['visible'] = self.visible.to_s
el1['timestamp'] = self.timestamp.xmlschema
-
+ el1['user'] = self.user.display_name if self.user.data_public?
# make sure segments are output in sequence_id order\r
ordered_segments = []\r
self.way_segments.each do |seg| \r