]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Replace fixtures with a factory for old_relation_tags
[rails.git] / app / models / way.rb
index ecbdd2f9ccd054ab4120fe7f627afb0c93f14e5c..98c4902f9e693cd2396aaf84761df00c0c3a8d83 100644 (file)
@@ -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|