X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4424cd5b947432848fe7f5bc7518fd1b718ecf6c..7151fa05e4d4f73956d7f9a7ad2db1f5b956a0c0:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 2f960d886..a3650173a 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -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' @@ -47,6 +53,7 @@ class OldNode < GeoRecord el1['visible'] = self.visible.to_s el1['timestamp'] = self.timestamp.xmlschema + el1['version'] = self.version.to_s return el1 end