开发者

Reading data from xml file

开发者 https://www.devze.com 2022-12-25 10:21 出处:网络
I have a currency converter开发者_StackOverflow中文版 application for iphone which uses web service. The web service is returning result in the following format:-

I have a currency converter开发者_StackOverflow中文版 application for iphone which uses web service. The web service is returning result in the following format:-

            <Date>4/5/2010</Date>
            <Time>7:18:09 AM</Time>
            <Amount>20</Amount>
            <ExchangeRate>44.7336419443466</ExchangeRate>
            <Result>894.672839</Result>

I'm storing the whole xml file in an NSString variable called theXML. I want to show the value inside the result tag.How can i read the data from the xml file or from the string..

Thanks in advance..


Use XPath.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号