i am unable to display an parsed xml on table view :(
<p>Please can any one correct my silly mistake as i am unable to show my parsed XML to the Table view. </p>

<p>I want my  tag to be displayed on table view.
here is my code (ignore my syntax ... as i am unable to paste it correctly here)....</p>

<blockquote>
  <p>XML TO BE PARSED</p>
</blockquote>

<pre><code>&lt;Table&gt;&lt;category&gt;&lt;Name&gt;Books&lt;/Name&gt;&lt;cid&gt;2&lt;/cid&gt;&lt;Logo&gt;http://litofinter.es.milfoil.arvixe.com/Thumbnail/5.png&lt;/Logo&gt;&lt;Product&gt;&lt;pid&gt;55&lt;/pid&gt;&lt;Title&gt;Un producto para cada necesidad&lt;/Title&gt;&lt;Thumbnail&gt;http://litofinter.es.milfoil.arvixe.com/Thumbnail/Book3.png&lt;/Thumbnail&gt;&lt;pdf&gt;http://litofinter.es.milfoil.arvixe.com/PDF/Book6.pdf&lt;/pdf&gt;&lt;/Product&gt;&lt;Product&gt;&lt;pid&gt;58&lt;/pid&gt;&lt;Title&gt;Quitamanchas pistola&lt;/Title&gt;&lt;Thumbnail&gt;http://litofinter.es.milfoil.arvixe.com/Thumbnail/Book9.png&lt;/Thumbnail&gt;&lt;pdf&gt;http://litofinter.es.milfoil.arvixe.com/PDF/Book7.pdf&lt;/pdf&gt;&lt;/Product&gt;&lt;/category&gt;&lt;/Table&gt;
</code></pre>

<p>CODE</p>

<pre><code>#TABLEVIEWCONTROLLER.H:


@class Book;

@interface TableViewController : UIViewController&lt;UITableViewDataSource,UITableViewDelegate&gt; {

    IBOutlet UIButton *btnBack;
    IBOutlet UITableView *tableView;
    Book *bookOne;
    NSMutableArray *array;
}

-(IBAction)onTapBack;

@property (nonatomic, retain)IBOutlet UITableView *tableView;


@end

#TABLEVIEWCONTROLLER.M

import "TableViewController.h"
import "XMLTableAppDelegate.h"
import "Book.h"

@implementation TableViewController


@synthesize tableView;

-(IBAction)onTapBack
{
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message from mAc" message:@"Trail" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok",nil];
    [alert show];
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [array count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    cell.selectionStyle = UITableViewCellSelectionStyleBlue;
    Book *book = [[Book alloc]init];
    book = [array objectAtIndex:indexPath.row];

    cell.textLabel.text = book.arrayString;
    [book release]; 
    [cell autorelease];
    return cell;
}


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];

    tableView.delegate = self;
    tableView.dataSource = self;

    //bookOne = [[Book alloc]init];
    array = [[NSMutableArray alloc]init];
    [array addObject:@"mAc"];
    [array addObject:@"Mayank"];
    [array addObject:@"Manu"];

}

-(void)viewWillAppear:(BOOL)animated{

    [tableView reloadData];
}



- (void)dealloc {
    [super dealloc];
    [tableView release];
    [btnBack release];
}

#BOOK.h


@interface Book : NSObject {


    NSMutableString *arrayString;

}

@property(nonatomic,retain) NSMutableString *arrayString;

@end

#BOOK.M

import "Book.h"


@implementation Book

@synthesize arrayString;

-(void)dealloc
{
    [super dealloc];

    [arrayString release];
}

@end
</code></pre>
