[jQuery] cannot retrieve elements with xpath

[jQuery] cannot retrieve elements with xpath


Hi,
I have this simple html page:
<html>
<head><title>A test page</title></head>
<script type="text/javascript" src="jquery.js"></script>
<body>
<script>
$("//*[@myattr='2']").hide();
$("//table[@myattr='3']").hide();
</script>
<h1 myattr="1">test-row1</h1>
another row
<h1 myattr="1">test-row2</h1>
<img myattr="2" src="pic1.png" />
<img myattr="2" src="pic2.png" />
<table myattr="3">
<tr myattr="4">
<td myattr="5">test</td>
</tr>
<tr myattr="4">
<td myattr="5">test</td>
</tr>
</table>
</body>
</html>
and I would like hide elements retrieved via xpath like in <script/>.
But it doesn't work
Why? Have you any idea?
Thanks,
Julio