xPath query problem

ALBERTHA

New Member
In a previous question, user helped me but i'm stuck of doing simple request :\[code\]<?php $nodes = $xPath->query('//table[@class="some_class"]');\[/code\]But it returns me the whole table datas instead of rows of the table, that's why i want to retrive only "td" of the table.I tryed (but it's not working)\[code\] <?php $nodes = $xPath->query('//table[@class="some_class"]/tbody/tr');\[/code\]What am I doing wrong please ?*EDIT HTML structure *\[code\]<table class="some_class"><tbody><tr><td class="firstcol" width="160">name</td><td width="250">Some&nbsp;Data</td></tr>\[/code\]
 
Back
Top