title: how to parse xml response in objective c
body: <p>i'm getting xml type of response from server but i'm unable to get the value by parsing do no where i am missing something</p>
  
  <p><strong>This was the sample Response from server :</strong></p>
  
  <pre><code>&lt;admin&gt;
  &lt;logindetails 
  status="cdcdvfbgfhgfgfbff" 
  timestamp="1494499694240" isdaylighton="true" 
  isupdateavailable="false" updateurl="" user="1" 
  userParentID="0"&gt;Success&lt;/logindetails&gt;&lt;admin&gt;
  </code></pre>
  
  <p><strong>my Parsing methods :</strong></p>
  
  <pre><code>-(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
  {
  NSLog(@"Element Name :%@",elementName);
  
  recordResults =NO;
  
  if ([elementName isEqualToString:@"logindetails"]) {
  
      data = [soapResultsString dataUsingEncoding:NSUTF8StringEncoding];
      json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
      NSLog(@"json===&gt;%@",array);
    }
  }
  
   -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
   {
  
  if( recordResults )
  {
      [childElement appendString: string];
      NSLog(@"inside%@",string);
  
  }
  
  }
  
   -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *) namespaceURI qualifiedName:(NSString *)qName
    attributes: (NSDictionary *)attributeDict
  {
  
  xmlparserString=elementName;
  NSLog(@"xmlparserString start --&gt;%@",xmlparserString);
  
  if( [xmlparserString isEqualToString:@"logindetails"])
  {
  
      recordResults =YES;
      soapResultsString = [[NSMutableString alloc] init];
  
  }
  
  }
  </code></pre>
  
  <p>iam getting All tags name but i cant get the values from the Xml response please check the code and answer </p>