如果标记名称未知,如何在iphone中以nsdictionary格式转换xml文件

时间:2022-10-24 00:13:24

How to convert the xml file in a nsdictionary format in iphone if tag name is unknown so i can reuse this file all time whenever i want to convert xml to nsdictionary format...

如果标签名称未知,如何在iphone中以nsdictionary格式转换xml文件,这样每当我想将xml转换为nsdictionary格式时,我都可以重复使用此文件...

2 个解决方案

#1


3  

I use this and it works pretty well. Had issues when there is only a single tag, but i guess you will figure out the solution.

我使用它并且效果很好。当只有一个标签时有问题,但我想你会找出解决方案。

#2


1  

You need to make a Generic XML parser for it. Make a Generic XML parser for your xml file

您需要为它创建一个通用XML解析器。为您的xml文件创建一个通用XML解析器

#1


3  

I use this and it works pretty well. Had issues when there is only a single tag, but i guess you will figure out the solution.

我使用它并且效果很好。当只有一个标签时有问题,但我想你会找出解决方案。

#2


1  

You need to make a Generic XML parser for it. Make a Generic XML parser for your xml file

您需要为它创建一个通用XML解析器。为您的xml文件创建一个通用XML解析器