title: How can i Parse xml data using GDataXML parser in iPhone application development?
body: <pre><code>-&lt;stat&gt;
  &lt;visitor&gt;4&lt;/visitor&gt;
  &lt;uniqueVisitor&gt;2&lt;/uniqueVisitor&gt;
  &lt;order&gt;41&lt;/order&gt;
  &lt;revenue&gt;20658&lt;/revenue&gt;
  &lt;conversionRate&gt;48&lt;/conversionRate&gt;
  &lt;newProduct&gt;25&lt;/newProduct&gt;
  &lt;outOfStockProduct&gt;11&lt;/outOfStockProduct&gt;
  &lt;/stat&gt;
  </code></pre>
  
  <p>From this xml i want to get the element name "visitor" &amp; "uniqueVisitor" and their corresponding values using GDataXML parser.</p>
  
  <p>Till now i have done these.</p>
  
  <pre><code>xmlFileLocation = [NSURL URLWithString:@"someurl....abc.php"];
  NSData *xmlData = [[NSMutableData alloc] initWithContentsOfURL:xmlFileLocation];
  xmlDocument = [[GDataXMLDocument alloc]initWithData:xmlData options:0 error:&amp;error];
  if (nil == xmlDocument)    {
      NSLog(@"could not load Branch.xml file");
  }
  else    {
      NSLog(@"Loading desire xml url for dashboard");
      [self GDataXmlParser];
  }
  </code></pre>
  
  <p>Using a tutorial i have done this till now. But now i want all of these element name and their corresponding values</p>
  
  <pre><code>-(void)GDataXmlParser{
  
  NSArray *getData = [[xmlDocument rootElement]elementsForName:@"stat"];
  records = [[NSMutableArray alloc]init];
  
          tempArray = [[NSMutableArray alloc]init];
          for(GDataXMLElement *e in getData){
  
           // What i have to do here????
          }
  </code></pre>
  
  <p>}</p>