title: Objective C - hpple getting text from inside TR tags
body: <p>First time here. </p>
  
  <p>Im attempting to build a Iphone app that pulls a single string from a HTML table on a website using hpple, The example of the website is here: <a href="http://tsy.acislive.com/pip/stop_simulator_title.asp?naptan=37020349&amp;pscode=22&amp;dest=&amp;offset=1" rel="nofollow">http://tsy.acislive.com/pip/stop_simulator_title.asp?naptan=37020349&amp;pscode=22&amp;dest=&amp;offset=1</a> </p>
  
  <p>and the code of the website: </p>
  
  <pre><code>&lt;body class="ss_title"&gt;
  &lt;table class=piptitle cellpadding='0' cellspacing='0' width="100%"&gt;&lt;tr&gt;&lt;td align="center" valign="middle"&gt;Tannery Street - 02:32 (+1h)&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I have tried the following method inside my app to get the text "Tannery Street - 02:32 (+1h):</p>
  
  <pre><code>-(void)loadTitleTable{
      NSLog(@"Load Title Method Called Successfully");
  
                    NSData *htmlData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://tsy.acislive.com/pip/stop_simulator_title.asp?naptan=37020349&amp;pscode=22&amp;dest=&amp;offset=1"]];
                    TFHpple *xpathParser = [[TFHpple alloc] initWithHTMLData:htmlData];
                    NSArray *elements  = [xpathParser searchWithXPathQuery:@"//tr/td"];
                    TFHppleElement *element = [elements objectAtIndex:0];
                    NSString *myTitle = [[element firstChild] content];
                    NSLog(myTitle);
                    _stopNOlabel.text = myTitle;
      NSLog(@"Array: %@", elements);
  }
  </code></pre>
  
  <p>I have tried outputting the array using NSLog and this is what the array outputs:</p>
  
  <p>Array: (
      "{\n    nodeAttributeArray =     (\n                {\n            attributeName = align;\n            nodeContent = center;\n        },\n                {\n            attributeName = valign;\n            nodeContent = middle;\n        }\n    );\n    nodeName = td;\n    raw = \"\";\n}"
  )</p>
  
  <p>I hope somebody here will be able to help me resolve this and set the label to the text string.</p>
  
  <p>Thanks. 
  Damien</p>