X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5f4dcd34ff5943ff4de39bc8322013376a6de8b9..f464e2a6e9679636d6ae8dbe7b3448cc4cab334d:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index ecbdd2f9c..98c4902f9 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -34,7 +34,7 @@ class Way < ActiveRecord::Base # Read in xml as text and return it's Way 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/way").each do |pt|