I have been using Hpple to parse some html in my iphone application (iOS5.1). I have searched for all 'td' elements within a table row. I am iterating through each of these elements, and for the most part I can retrieve all the information I need from the element, e.g.
[element objectForKey:@"rowspan"];
But one of the values I need is within the td:
<tr>
<td rowspan="3"> //This is my element
<div>
<a>link text</a> //The link text is what I want
</div>
</td>
</tr>
Is there a way of getting the 'a' tags within my element, I have tried the following, but it doesn't work:
[[[element firstChild] firstChild] content];
Any help would be greatly appreciated!