如何在iPhone上读取和解析XML文件? [英] How to read in and parse an XML file on the iphone?

查看:313
本文介绍了如何在iPhone上读取和解析XML文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个返回XML文件的Web服务器.可以说 http://www.foo.bar/foo.php?wantXML=1

I have a web server which returns an XML file. Lets say http://www.foo.bar/foo.php?wantXML=1

我如何从服务器获取该文件,然后解析它以访问数据?我想我必须产生一个新线程并在后台执行整个操作才能不阻塞UI?我必须看什么课?

How would I fetch that file from the server and then parse it to access the data? I guess I would have to spawn a new thread and do the whole thing in the background to not block the UI? What classes must I look at?

推荐答案

SeismicXML示例完全符合您的要求.

这篇关于如何在iPhone上读取和解析XML文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆