1 # Note that this file is currently unused
 
   2 # I (xin@zxv.ltd.uk) suspect this is slower than using OSM module, which in turn uses libxml
 
   3 # it will be good to output xml this way eventually.
 
   4 xml.instruct! :xml, :version=>"1.0"
 
   5 xml.osm("version" => "0.5", "generator" => "OpenStreetMap Server") do
 
   7     xml.tag! "node",:id => node.id,
 
  10                     :user => node.user_display_name,
 
  11                     :visible => node.visible,
 
  12                     :timestamp => node.timestamp.xmlschema  do
 
  13       node.tags.each do |tag|
 
  15         xml.tag! "tag",:k => k, :v => v
 
  20     xml.tag! "way", :id => way.id,
 
  21                     :user => way.user_display_name,
 
  22                     :visible => way.visible,
 
  23                     :timestamp => way.timestamp.xmlschema  do
 
  25         xml.tag! "nd", :ref => nd