]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Merge remote-tracking branch 'openstreetmap/pull/1339'
[rails.git] / app / models / node.rb
index 578735688be4253bb90bef0967c9f7244aee5de4..2a64259c10c0832d16c4ec8e2008aa7e34985947 100644 (file)
@@ -49,7 +49,7 @@ class Node < 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/node").each do |pt|