0

I've been having trouble building a UITableView around an HTML table that loads in a UIWebView, currently I have the web view visible to make sure the search query is working properly, what I want to do, is load the results table into a UITableView, or the items that are in the results, I don't want the whole web page, I know the entire table is defined by a class named results and that the individual items are defined by a class named item another named price and a third named change, I'm developing for the iPhone using Xcode 4.2

<table class="results">
    <thead>
        <tr>
            <th class ="item">item</th>
            <th class ="members">members</th>
            <th class ="price">price</th>
            <th class ="change">change</th>
        </tr>
        </thread>
    <tbody>
        <tr data-item-id="440">
            <td class="item">
                <img src="item-img" alt="item-name">
                <a href="view-item-link">item-name</a>
            </td>
            <td>
                <img src="member-img" alt="Free item" title="Free item">
            </td>
            <td class="price">185</td>
            <td class="positive">+9</td>
        </tr>

Thats how it's displayed, I would actually need the view item link, the item name, the price, and the positive. The positive class changes though, it can be positive, negative, or neutral.

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
iExiledDev
  • 109
  • 9
  • Have you considered a DOM parser? Here is a link with some discussion of what's available. http://stackoverflow.com/questions/5076285/xml-parser-for-objective-c – Jim Nov 29 '11 at 15:36
  • I've looked into that link, I'm not sure which one I should go with though, I'm not too great with java or parsing, but I'm a pretty quick learner – iExiledDev Dec 05 '11 at 20:41

0 Answers0