X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b7335940e21bfe4fc9ac688130687398e677cfae..c8ee1351049ef1bb4d7b50d071b2a96154266d1d:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index f2ad3a78a..d3e0a7e8d 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -64,8 +64,7 @@ class Node < ActiveRecord::Base # Read in xml as text and return it's Node object representation def self.from_xml(xml, create=false) begin - p = XML::Parser.new - p.string = xml + p = XML::Parser.string(xml) doc = p.parse doc.find('//osm/node').each do |pt|