X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bcbf417796c9da00397237d6e3808859d5d3adca..7151fa05e4d4f73956d7f9a7ad2db1f5b956a0c0:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 247a69923..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'