]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
api06: simplify exception handling and add exception handling to the diff
[rails.git] / app / models / old_node.rb
index 247a699236c46bc76a9dc0e804051a1877709042..a3650173a6e5dfdaf3146eefe41b2a3adb0514e3 100644 (file)
@@ -30,6 +30,12 @@ class OldNode < GeoRecord
     old_node.version = node.version
     return old_node
   end
+  
+  def to_xml
+    doc = OSM::API.new.get_xml_doc
+    doc.root << to_xml_node()
+    return doc
+  end
 
   def to_xml_node
     el1 = XML::Node.new 'node'