title: Parsing xml data and storing it using core data iOS
body: <pre><code>&lt;content name="Bikes" last_updated_time=""&gt;
   &lt;bike name="MGP30" image_url="Mobile_App/images/mgp30_bike_banner.png"&gt;
    &lt;tspecs&gt;
      &lt;image url="images/our-bikes/mgp30.png"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/1.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/2.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/3.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/4.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/5.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/6.jpg"/&gt;
      &lt;image url="images/our-bikes/mgp30_tech_spec/7.jpg"/&gt;
      &lt;spec&gt;
        &lt;name&gt;Engine Type&lt;/name&gt;
        &lt;value&gt;4 strokes liquid cooled DOHC&lt;/value&gt;
      &lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
      &lt;spec&gt;&lt;/spec&gt;
    &lt;/tspecs&gt;
    &lt;photos&gt;&lt;/photos&gt;
    &lt;workshop&gt;&lt;/workshop&gt;
   &lt;/bike&gt;
   &lt;bike name="GP125" image_url="Mobile_App/images/gp125_bike_banner.png"&gt;&lt;/bike&gt;
  &lt;/content&gt;
  
  
  This is the first time I am working with xml parsing using core data.I have the above xml data which i receive from the server. I am not bale to understand how to create the relationships between the entities. How do I parse it and keep storing it using core data. 
  </code></pre>
  
  <p>Content is the root object with Bikes as child element. Each Bike element has a tspecs, photos and workshop data. Each tspecs has set of images, and set of specs data. Each spec data has a name and value.</p>