X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7335940e21bfe4fc9ac688130687398e677cfae..677f391ec1e49b58136717bbd45fdee00008855a:/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|