I am trying to extract data from a table using...
$tags = $xpath->query('//tr[@valign="top"]/td/span[@style="background-color:#cccccc;font-weight:bold;"]'); on a row that looks like...
<tr valign="top"> <td style="background-color:#cccccc;"><span style="background-color:#cccccc;font-weight:bold;">Some Company</span> But its not retrieving the data, it works using the DOM inspector in firebug... using the xpath...
$tags = $xpath->query('//tr[@valign="top"]/td/span'); works but it pulls other data not wanted. Any suggestions?