Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vladimir929

macrumors newbie
Original poster
Oct 22, 2008
12
0
This question might be a little specific but the test app im writing uses XPath to find the data i need in HTML. This piece of HTML(found here) is what im trying to parse.

Code:
<table border="0" cellspacing="0" cellpadding="0">

    <tr>

        <td class="textSm" align="right">1. </td> <!-- Location of the number is here --!>
        <td align="left" nowrap>
            <a href="/stats/individual_stats_player.jsp?c_id=sf&playerID=467055" class="textSm">P Sandoval</a> <!-- Player location is here of the number is here --!>
        </td>

    </tr>
</table>

My goal is to find the name of the person by using the number that corresponds to him to find him. This requires me to find a node by the specific text contained in "td class="textSm" align="right">1. </td>" and then find the sibling of that node "<td align="left" nowrap>" then find the child of that sibling "P Sandoval" to get the desired result. I was wondering what kind of query I could use to find this. Any help is very much appreciated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.