我正在爲iOS應用程序開發一天的聖經報價,並想知道如何解析XML
在線託管的數據以在我的應用程序中顯示在UITextView
中。從網站解析XML文件到UITextView
<bible>
<title>John 1:14</title>
<item>
<bookname>John</bookname>
<chapter>1</chapter>
<verse>14</verse>
<text>
Now the Word became flesh and took up residence among us. We saw his glory – the glory of the one and only, full of grace and truth, who came from the Father.
</text>
</item>
<results>1</results>
</bible>
我想在另一個UITextView
一個UITextView
和<text>
解析<title>
的。有人能幫忙嗎?正在使用蘋果的NSXMLParser
一個可行的選擇?
也許這可以幫助:http://stackoverflow.com/a/9884929/1153630 –