link << url
item << link
+ guid = XML::Node.new 'guid'
+ guid << url
+ item << guid
+
description = XML::Node.new 'description'
description << description_text
item << description
pubDate = XML::Node.new 'pubDate'
- pubDate << timestamp.xmlschema
+ pubDate << timestamp.to_s(:rfc822)
item << pubDate
if latitude
lat_el = XML::Node.new 'geo:lat'
lat_el << latitude.to_s
- item << lat_el if lat_el
+ item << lat_el
end
if longitude