我有一本字典,当我写它的元素时,就像
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UrunListesi6Response xmlns="http://tempuri.org//Stok">
<UrunListesi6Result>
<Urun6>
<UrunId>int</UrunId>
</Urun6>
<Urun6>
<UrunId>int</UrunId>
</Urun6>
</UrunListesi6Result>
</UrunListesi6Response>
</soap:Body>
</soap:Envelope>
要将 UrunIds 放入数组中,我使用
NSMutableArray *a = [[NSMutableArray alloc] init];
a = [[[[[myDictionary objectForKey:@"soap"]objectForKey:@"UrunListesi6Response" ] objectForKey:@"UrunListesi6Result"] objectForKey:@"Urun6"] objectForKey:@"UrunId"];
NSLog(@"%@",a);
但是结果为空,有什么问题吗?