consider the following HTML code:
<html>
<head>
<title>Example website</title>
</head>
<body>
<div>
<table id='tableid'>
<tr>
<td>
<a href="/blabla" title="Blabla1">Blabla1</a>
<a href="/blabla" title="Blabla1">Blabla2</a>
<a href="/blabla" title="Blabla1">Blabla3</a>
<a href="/blabla" title="Blabla1">Blabla4</a>
</td>
<td>col2</td>
<td>col3</td>
<td>col4</td>
</tr>
</table>
</body>
</html>
If I want to get all the links, why should I use:
//table[@id="tableid"]//a/@href
instead, if you use one / after the table? I am alredy on the node table at this moment (it should become my "root"), so / should be enough ...
early!
source
share