title: Parsing XML: identify / get data for specific element?
body: <p>I have the following methods in my simple Custom Parser Class, when I execute CALLED: on my data I get ...</p>
  
  <pre><code>Found: OK
  Found: 046 3433 5674 3422 4456 8990 1200 5284
  </code></pre>
  
  <p>My question is how would I go about adding to this so that I can specifically pick out the information for the data element (see below), is there anything I can add to the - (void)parser: method, how might I do that?</p>
  
  <pre><code>&lt;data version="1.0"&gt;2046 3433 5674 3422 4456 8990 1200 5284&lt;/data&gt;
  </code></pre>
  
  <p>Here are sections of my code:</p>
  
  <pre><code>// CLASS:
  
  @interface CustomParser : NSObject &lt;NSXMLParserDelegate&gt; {
  }
  -(void)parseFile:(NSString *)pathToFile;
  @end
  
  @implementation CustomParser
  
  -(void)parseFile:(NSString *)pathToFile {
      NSLog(@"parseXMLFile ... \"%@\"", pathToFile);
      NSURL *url = [NSURL fileURLWithPath:pathToFile];
      NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:url];
      [parser setDelegate:self];
      [parser parse];
      [parser release];
  }
  
  - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
      NSLog(@"Found: %@", string);
  }
  @end
  </code></pre>
  
  <p>.</p>
  
  <pre><code>//CALLED:
  CustomParser *newParser = [[CustomParser alloc] init];
  [newParser parseFile:fileOnDisk];
  
  ... more
  
  [newParser release];
  </code></pre>
  
  <p>.</p>
  
  <pre><code>//DATA:
  &lt;!DOCTYPE tubinerotationdata&gt;
  &lt;turbine version="1.0"&gt;
  &lt;status version="1.0" result="200"&gt;OK&lt;/status&gt;
  &lt;data version="1.0"&gt;
      2046 3433 5674 3422 4456 8990 1200 5284
  &lt;/data&gt;
  &lt;/turbine&gt;
  </code></pre>
  
  <p>gary</p>