title: PHP load XML into object
body: <p>I am trying to import each story into an object. Each object will have multiple strings (start and end) along with arrays generated from content in the additional-content. An small example would be:</p>
  
  <pre><code>&lt;feed&gt;
    &lt;story&gt;
      &lt;run&gt;
        &lt;start&gt;1/1/2012&lt;/start&gt;
        &lt;end&gt;3/1/2012&lt;/end&gt;
      &lt;/run&gt;
      &lt;additional-content&gt;
        &lt;content&gt;
           &lt;sample&gt;Sample story example&lt;/sample&gt;
        &lt;/content&gt;
        &lt;content&gt;
           &lt;sample&gt;Sample story example&lt;/sample&gt;
        &lt;/content&gt;
      &lt;/additional-content&gt;
  &lt;/story&gt;
  ...
  &lt;/feed&gt;
  </code></pre>
  
  <p>I all the xml being imported to a string. Also, I am trying to do this without libraries. 
  I understand looping through each story but am unsure how to load the content into the object while also generating the array correctly. Any help would be appreciated. </p>