]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Update to use libxml 1.0.0 gem.
[rails.git] / app / models / way.rb
index 958944200df628054c67c6c0eb8e60105d99bb38..6c3ea9e462dcda9b5d18b2a1d23e23a48d38ca0e 100644 (file)
@@ -17,8 +17,7 @@ class Way < ActiveRecord::Base
 
   def self.from_xml(xml, create=false)
     begin
-      p = XML::Parser.new
-      p.string = xml
+      p = XML::Parser.string(xml)
       doc = p.parse
 
       way = Way.new