<content name="Bikes" last_updated_time="">
<bike name="MGP30" image_url="Mobile_App/images/mgp30_bike_banner.png">
<tspecs>
<image url="images/our-bikes/mgp30.png"/>
<image url="images/our-bikes/mgp30_tech_spec/1.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/2.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/3.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/4.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/5.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/6.jpg"/>
<image url="images/our-bikes/mgp30_tech_spec/7.jpg"/>
<spec>
<name>Engine Type</name>
<value>4 strokes liquid cooled DOHC</value>
</spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
<spec></spec>
</tspecs>
<photos></photos>
<workshop></workshop>
</bike>
<bike name="GP125" image_url="Mobile_App/images/gp125_bike_banner.png"></bike>
</content>
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.
内容是以 Bikes 作为子元素的根对象。每个 Bike 元素都有一个 tspecs、照片和车间数据。每个 tspecs 都有一组图像和一组规格数据。每个规格数据都有一个名称和值。