我第一次使用webservice。如何保存和讀取ios中的web服務器的XML文件?
我在運行時從webservice得到了一個XML。
<?xml version="1.0" encoding="UTF-8"?>
<driver>
<full_name><![CDATA[Test Driver Name]]></full_name>
<d_o_b><![CDATA[1950-05-12]]></d_o_b>
<p_o_b><![CDATA[Test City]]></p_o_b>
<height><![CDATA[Test City]]></height>
<nationality><![CDATA[Test nationality]]></nationality>
<c_team><![CDATA[Test current teme]]></c_team>
<podium><![CDATA[Test podium]]></podium>
<points><![CDATA[Test points]]></points>
<g_p_entered><![CDATA[1950-05-12]]></g_p_entered>
<worldchanpionship><![CDATA[Test 12]]></worldchanpionship>
<h_race_f><![CDATA[Test hightest]]></h_race_f>
<h_g_points><![CDATA[Test hgp]]></h_g_points>
<pre_team><![CDATA[Test pre team]]></pre_team>
</driver>
現在我要保存和讀取,我通過Web服務得到,這樣我可以用我的應用程序沒有互聯網連接的XML文件。
如何做到這一點我不知道?
在此先感謝。