如何使用NSXMLParser? [英] How to use NSXMLParser?

查看:61
本文介绍了如何使用NSXMLParser?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些XML,需要在我的Objective-C代码中进行解析. XML非常简单.我已经搜索了Stackoverflow以及Google,但没有找到我想要的东西.例如如何使用NSXMLParser会很有用,并且如果有人对如何使用其他方法有任何建议,请告诉我.

I have some XML which I need parsed in my Objective-C code. The XML is fairly simple. I have already searched Stackoverflow as well as Google but I did not find what I am looking for. Examples if how to use NSXMLParser would be useful, and if anyone has any suggestions on how to do this another way please let me know.

推荐答案

您看过Apple示例应用程序吗?从 NSXMLParser类参考,我发现不少于五个进行解析的示例项目.

Did you look at the Apple sample applications? From the NSXMLParser class reference, I found no fewer than five sample projects that did parsing.

  • GKTank
  • KMLViewer
  • LazyTableImages
  • SeismicXML (probably your best bet, and most directly related)
  • XMLPerformance

这篇关于如何使用NSXMLParser?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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