title: NSMutableArray and NSDictionary using for parsed xml data
body: <p>Please anybody help me.i am in great trouble....Now my Problem is...</p>
  
  <p>Using xml parser i have parsed some attribute and value of the attribute.</p>
  
  <p>using this i am getting the element name:</p>
  
  <pre><code>- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName   namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:   (NSDictionary *)attributeDict
  </code></pre>
  
  <p>Now using this i am getting value of the attribute from the xml:</p>
  
  <pre><code>- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{ 
  NSLog(@"found characters: %@ %@", currentElement,string);
  </code></pre>
  
  <p>suppose my xml data are something like that...</p>
  
  <pre><code>-&lt;list&gt;
  −&lt;ProductData HASH="838557843"&gt;
  &lt;id&gt;1&lt;/id&gt;
  &lt;productNumber&gt;a91cc0f4c7&lt;/productNumber&gt;
  &lt;name&gt;Product 1&lt;/name&gt;
  &lt;seoTitle&gt;product-1&lt;/seoTitle&gt;
  &lt;viewCount&gt;0&lt;/viewCount&gt;
  &lt;lowStock&gt;0.0&lt;/lowStock&gt;
  &lt;image&gt;5e928bbae358c93caedf6115fa7d178b.jpg&lt;/image&gt;
  &lt;dateCreated&gt;2011-10-06T16:08:45&lt;/dateCreated&gt;
  &lt;dateUpdated&gt;2011-10-06T10:08:45&lt;/dateUpdated&gt;
  &lt;isDummy&gt;true&lt;/isDummy&gt;
  &lt;isInventory&gt;false&lt;/isInventory&gt;
  &lt;/ProductData&gt;
  -&lt;ProductData HASH="681596439"&gt;
  &lt;id&gt;2&lt;/id&gt;
  &lt;productNumber&gt;d8287e2e51&lt;/productNumber&gt;
  &lt;name&gt;Product 2&lt;/name&gt;
  &lt;seoTitle&gt;product-2&lt;/seoTitle&gt;
  −&lt;description&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit,....&lt;/p&gt;
  &lt;/description&gt;
  &lt;viewCount&gt;0&lt;/viewCount&gt;
  &lt;availableStock&gt;100.0&lt;/availableStock&gt;
  &lt;lowStock&gt;0.0&lt;/lowStock&gt;
  &lt;image&gt;8bbd8dfff3cdd28285d07810a4fe7c32.jpg&lt;/image&gt;
  &lt;basePrice&gt;10.0&lt;/basePrice&gt;
  &lt;costPrice&gt;10.0&lt;/costPrice&gt;
  &lt;height&gt;1.0&lt;/height&gt;
  &lt;width&gt;1.0&lt;/width&gt;
  &lt;depth&gt;1.0&lt;/depth&gt;
  &lt;weight&gt;3.0&lt;/weight&gt;
  &lt;status&gt;A&lt;/status&gt;
  &lt;quantityOrderMin&gt;1.0&lt;/quantityOrderMin&gt;
  &lt;productIsCall&gt;false&lt;/productIsCall&gt;
  &lt;quantityOrderMax&gt;20.0&lt;/quantityOrderMax&gt;
  &lt;priceByAttribute&gt;false&lt;/priceByAttribute&gt;
  &lt;dateCreated&gt;2011-10-06T16:08:45&lt;/dateCreated&gt;
  &lt;dateUpdated&gt;2011-10-06T10:08:45&lt;/dateUpdated&gt;
  &lt;isDummy&gt;true&lt;/isDummy&gt;
  &lt;isInventory&gt;false&lt;/isInventory&gt;
  &lt;/ProductData&gt;
  &lt;/list&gt;`
  </code></pre>
  
  <p>Now when i will get the <code>id</code> attribute then it will store in an array then all of the attribute after first <code>id</code> until next <code>id</code> i want to store the attribute and its value in the dictionary,when i will get second <code>id</code> then i want to continue previous process...then according to the value of <code>id</code> i want to display the value in a <code>UIView</code> or <code>UITableView</code>. its not neccesary where i want to display it. </p>
  
  <p>My question is how can i store data in <code>array</code> and <code>dictionary</code> and display it any time in my <code>viewcontroller</code>. Please help me. its becoming a great trouble for me. if you can please give me a <code>sample code</code> as an example. please please anybody help me...</p>
  
  <p>Thanks in Advance</p>