开发者

iPhone xml parsing/editing a better solution?

开发者 https://www.devze.com 2023-03-20 22:09 出处:网络
I use GDataXML for parsing the XML I received from my webservice, actually I only parse the part that I need and then I want to \"edit\" that XML and send it back to Webservice.

I use GDataXML for parsing the XML I received from my webservice, actually I only parse the part that I need and then I want to "edit" that XML and send it back to Webservice.

I checked some GDataXML examples but they were about saving XML as model objects and creating an XML from model objects again.

Because speed is important what I want is without saving or converting that xml into model objects I just want to edit/delete some nodes on it and send it back quickly as possible.

Actually I can do this by simply converting it into string and do string manipulation.开发者_高级运维 But I dont think editing XML as a string is a safe way.

How can I do this better?

Thanks


I tend to use a XML to NSDictionary object that I found on google which saves a lot of time parsing and configuring the XML. Try that out.

0

精彩评论

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

关注公众号