title: Parsing Group XML Node from SOAP Response - OBJECTIVE C
body: <p>I have the following XML from SOAP Response how should I parse it ?</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;soapenv:Body&gt;
    &lt;areaSearchResponse  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
   &lt;areaSearchReturn xsi:type="ns1:QueryBean" xmlns:ns1="http://rpc.xml.coldfusion"&gt;
   &lt;details soapenc:arrayType="xsd:anyType[4]" xsi:type="soapenc:Array"&gt;
    &lt;details xsi:type="soapenc:string"&gt;photo1.jpg&lt;/data&gt;
    &lt;details xsi:type="soapenc:int"&gt;1224&lt;/data&gt;
    &lt;details xsi:type="soapenc:double"&gt;552.0&lt;/data&gt;
    &lt;details xsi:type="soapenc:double"&gt;20.04&lt;/data&gt;
   &lt;/details&gt;
   &lt;details soapenc:arrayType="xsd:anyType[4]" xsi:type="soapenc:Array"&gt;
    &lt;details xsi:type="soapenc:string"&gt;photo2.jpg&lt;/data&gt;
    &lt;details xsi:type="soapenc:int"&gt;1234&lt;/data&gt;
    &lt;details xsi:type="soapenc:double"&gt;632.0&lt;/data&gt;
    &lt;details xsi:type="soapenc:double"&gt;34.05&lt;/data&gt;
   &lt;/details&gt;
  </code></pre>
  
  <p>I am using NSXMLParser as follows </p>
  
  <pre><code>-(void) parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict{
  
  if([[attributeDict valueForKey:@"xsi:type"] isEqualToString:@"soapenc:Array"]
     &amp;&amp; [[attributeDict valueForKey:@"soapenc:arrayType"] isEqualToString:@"xsd:anyType[4]"]){
  
      _propertyInfoArray  =   [[NSMutableArray alloc] init];
      self.isNewRow   =   YES;
      NSLog(@" New Row Created ");
  }else{
      self.isNewRow   =   NO;
      _rawData    =   [[NSMutableString alloc] init];
  }
  
  }
  
  -(void) parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
  [_rawData appendString:string];
  
  }
  
  -(void) parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
  
      if(self.isNewRow){
          NSLog(@"Previous Row will be Added to NSSet");
      }else{
          [_propertyInfoArray addObject:_rawData];
  
          NSLog(@"Value %@ ",_rawData);
      }
  }
  
  }
  </code></pre>
  
  <p>In my above code in didEndElement: method I am always getting value of self.isNewRow as False (NO) 
  Why is that ?</p>
  
  <p>What other way I can parse the above XML ?
  Or 
  What is the best way to parse the Group Node ? </p>
  
  <p>Thanks in Advance !</p>