title: Parse then Store XML Data from API in Ruby on Rails
body: <p>I know there have been a ton of entries about this topic but I haven't seen the complete picture yet of how to store the data.  I am trying to make a system that reads then parses then stores information about events from the Yahoo Upcoming API.</p>
  
  <p>The url returns a pretty simple xml that looks like this</p>
  
  <pre><code>&lt;event&gt;
  &lt;id&gt;489875230&lt;/id&gt;
  &lt;description&gt;Open Bar&lt;/description&gt;
  &lt;status&gt;Live&lt;/status&gt;
  &lt;latitude&gt;29.74&lt;/latitude&gt;
  &lt;longitude&gt;-95.37&lt;/longitude&gt;
  &lt;/event&gt;
  </code></pre>
  
  <p>I've been reading into REXML and others but how do I take the value of the elements and store them into my model?
  The goal is the print the values from all the desired elements in the XML to textboxes to allow the data to be edited then, then letting the user save in the database...I just am having a hard time figuring out how to do something with the data once its parsed.</p>
  
  <p>Any help, link, or suggestions would really help me out alot.</p>