2012-02-21 70 views
0

我使用GDataXML解析5月XML,但我有这样一个probleme:GDataXml和命名空间

<.... 
         <images xmlns:a="http://.../Arrays"> 
          <a:string>http://images...233/Detail.jpg</a:string> 
          <a:string>http://images....233/Detail2.jpg</a:string> 
         </images> 
        .../> 

我想有我全部图像URL,并把它放在一个NSArray,我是做这样的:

NSError *error = nil; 
    GDataXMLDocument *xmlResult = [[GDataXMLDocument alloc] initWithData:data options:0 error:&error]; 
    if (error) { 
     NSLog(@"%@",error); 
    } 


....... 

NSArray *array = [... nodesForXPath:@"images" namespaces:a error:&error]; 

我的数组它不是空

现在我想访问我的图像的URL,但我不能,我这样做是这样的:

arrar = [array elementsForName:@"a"]; 

BYT我的数组是空的,我觉得problemm与命名空间WUT我却不知道如何解决它 谢谢您的回答

回答