Ios XML到字典的转换
我也是IOS-Objective c和XML数据解析方面的新手。使用ABBEY scanner,我得到一个XML,使用“XMLReader”(从Github下载)得到字典值,如下所示Ios XML到字典的转换,ios,objective-c,xml,json,Ios,Objective C,Xml,Json,我也是IOS-Objective c和XML数据解析方面的新手。使用ABBEY scanner,我得到一个XML,使用“XMLReader”(从Github下载)得到字典值,如下所示 xmlDictionary = { items = { item = { id = 0001; type = donut; name = { text = Cake;
xmlDictionary = {
items = {
item = {
id = 0001;
type = donut;
name = {
text = Cake;
};
ppu = {
text = 0.55;
};
batters = {
batter = (
{
id = 1001;
text = Regular;
},
{
id = 1002;
text = Chocolate;
},
{
id = 1003;
text = Blueberry;
}
);
};
topping = (
{
id = 5001;
text = None;
},
{
id = 5002;
text = Glazed;
},
{
id = 5005;
text = Sugar;
}
);
};
};
}
如何解析这种字典,在所有方面都显示null值。请帮助取这本词典需要什么钥匙?使用NSJSONSerialization解析数据我不理解“显示所有方面的值为null”的问题。@SureshThoutam JSON Serializer for XML?