title: Parsing XML to read in NSMutableArray
body: <p>I am trying to put the contents of an XML file into an <code>NSMutableArray</code>.  I want to be able to get the following result:</p>
  
  <pre><code>NSLog(@"%@", [myarray objectAtIndex: 1];  will return cookie.
  </code></pre>
  
  <p>The xml file looks like this:</p>
  
  <pre><code>&lt;row&gt;
  &lt;Word&gt;aardvark&lt;/Word&gt;
  &lt;/row&gt;
  
  &lt;row&gt;
  &lt;Word&gt;cookie&lt;/Word&gt;
  &lt;/row&gt;
  </code></pre>
  
  <p>This is the code I have so far:</p>
  
  <pre><code>-(void)checkdictionary {
      NSString *xmlPath = [[NSBundle mainBundle] pathForResource:@"englishwords" ofType:@"xml"];
      NSData *xmlData = [NSData dataWithContentsOfFile:xmlPath];
      NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:xmlData];
      [xmlParser setDelegate:self];
      [xmlParser parse];
  }
  
  - (void) parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
      namespaceURI:(NSString *)namespaceURI
      qualifiedName:(NSString *)qualifiedName
      attributes:(NSDictionary *)attributeDict{
  
      if ([elementName isEqualToString:@"Word"]){
  
          }
  }
  </code></pre>