iOS アプリケーションを開発していて、gdataxml を使用して xml を解析していますが、やり方が間違っています。nslog が null です
NSError *error = nil;
GDataXMLDocument *xmlResult = [[GDataXMLDocument alloc] initWithData:data options:0 error:&error];
if (error) {
NSLog(@"%@",error);
}
NSLog(@"%@",xmlResult.rootElement); 私のルート要素は完璧です、エラーは tempArray にあります
NSArray *tempArray = [xmlResult nodesForXPath:@"//message/error/value" error:&error];
NSLog(@"mon array %@",tempArray);
私の配列はnullです、
私のxmlは次のようなものです:
<message xmlns="http://.....Api" xmlns:i="http://www.w3.org/....">
<error i:nil="true"/>
<value>
私の問題は名前空間にあると思いますが、どうすればいいですか?
ご回答有難うございます