X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d82f9d12ce55a0287361ed4f93cd97e896778a35..1d86379a5c55d1007f002ca0505b69d43a37def6:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 85c0244d5..47e5c38b7 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -174,7 +174,7 @@ class Trace < ActiveRecord::Base # Read in xml as text and return it's Node object representation def self.from_xml(xml, create = false) - p = XML::Parser.string(xml) + p = XML::Parser.string(xml, :options => XML::Parser::Options::NOERROR) doc = p.parse doc.find("//osm/gpx_file").each do |pt|