我是 iPhone 新手,
我想<text>
从我的本地页面获取标签的所有值,.html
并且我想将它存储在我的数组中。
例如: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
任何帮助都会得到帮助。