class Node < ActiveRecord::Base
require 'xml/libxml'
set_table_name 'current_nodes'
+
validates_numericality_of :latitude
validates_numericality_of :longitude
key = parts[0].strip unless parts[0].nil?
val = parts[1].strip unless parts[1].nil?
if key != '' && val != ''
- el2 = Node.new('tag')
+ el2 = XML::Node.new('tag')
el2['k'] = key.to_s
el2['v'] = val.to_s
el << el2