我有个问题.
我使用XMLReader类来获取NSDictionary,一切正常.但我无法获取productData元素的属性值.
具体来说,我有以下NSDictionary:
{
response = {
products = {
productsData = (
{
alias = "Product 1";
id = 01;
price = "10";
},{
alias = "Product 2";
id = 02;
price = "20";
},{
alias = "Product 3";
id = 03;
price = "30";
});
};
};
}
我用这段代码创建了de NSDictionary:
NSDictionary *dictionary = [XMLReader dictionaryForXMLData:responseData error:&parseError];
和responseData包含:
01
10
Product 1
02
20
Product 2
02
20
Product 3
然后,我不知道如何得到每个productData的值,如id,price和别名……
谁知道怎么做?
谢谢,请原谅我的英语不好!