objective-c中的自动解析库 - [自动化XML / JSON到对象转换] [英] Automatic parsing library in objective-c - [Automated XML/JSON to Object Conversion]

查看:71
本文介绍了objective-c中的自动解析库 - [自动化XML / JSON到对象转换]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Objective-C中有一个库,我可以在IPhone中使用它,我可以提前告诉库,这些标签应该在xml文件中预期,然后该库自动为我解析,并给我一个array of NSDictionary in return or something similar?

Is there a library in Objective-C which I can use in IPhone, in which I can tell in advance the library that these tags it should expect in the xml file and then that library parse it automatically for me and give me an array of NSDictionary in return or something similar?

简单来说,我正在寻找一个东西,它给我一个Object数组后,它自动解析xml文件并且我可以指定应该从文档中提取的对象的属性。

In simple words, I am looking for something which give me an array of "Object" after it has parse the xml document automatically and I can dictate attributes of that object which it should extract from the document.

我在Objective-C中寻找类似这样的东西
http://code.google.com/p/google-gson/

I am looking for something similar to this in Objective-C http://code.google.com/p/google-gson/

推荐答案

虽然这个问题提出超过一年前,我添加了自己的图书馆授予
MIT许可证,正在寻找:

Though this question was posed more than one year ago, I add my own library licensed under the MIT license which does exactly what we are looking for:

http://ceasyxml.googlecode.com /

这篇关于objective-c中的自动解析库 - [自动化XML / JSON到对象转换]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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