0
我新的iPhone,從HTML頁面獲取標籤值在iPhone
我想從我的本地.html
網頁抓取<text>
標籤的所有價值,我想將它保存在我的數組。
例如:toc.html
是我的html文件,從此文件我想獲取<text>
標記的所有值。
這裏是我的html文件,
<navMap>
<navPoint class="chapter" id="navpoint-1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="Morning Insight 26 April - K S 2/Morning Insight 26 April - K S 2/Morning Insight 26 April - K S/Morning Insight 26 April - K S/Morning Insight/OEBPS/first.html"/>
</navPoint>
<navPoint class="chapter" id="navpoint-2" playOrder="2">
<navLabel>
<text>News</text>
</navLabel>
<content src="Morning Insight 26 April - K S 2/Morning Insight 26 April - K S 2/Morning Insight 26 April - K S/Morning Insight 26 April - K S/Morning Insight/OEBPS/1.html"/>
</navPoint>
<navPoint class="chapter" id="navpoint-3" playOrder="3">
<navLabel>
<text>Report</text>
</navLabel>
<content src="Morning Insight 26 April - K S 2/Morning Insight 26 April - K S 2/Morning Insight 26 April - K S/Morning Insight 26 April - K S/Morning Insight/OEBPS/2.html"/>
</navPoint>
<navPoint class="chapter" id="navpoint-4" playOrder="4">
<navLabel>
<text>Economy Update</text>
</navLabel>
<content src="Morning Insight 26 April - K S 2/Morning Insight 26 April - K S 2/Morning Insight 26 April - K S/Morning Insight 26 April - K S/Morning Insight/OEBPS/3.html"/>
</navPoint>
<navMap>
終於我的數組應該包含:
array at 0: Cover
array at 1: News
array at 2: Report
array at 3: Economy Update
任何幫助將appriciated。