I'm have some html such as below:
<html>
<body>
... other html stuff ...
<form method="post" action="goSomewhere">
<input type="hidden" value="something">
<input type="hidden" value="something2">
<table>
<tr><td><input type="checkbox" name="123">Stuff 1</td></tr>
<tr><td><input type="checkbox" checked name="456">Stuff 2</td></tr>
<tr><td><input type="checkbox" name="789">Stuff 3</td></tr>
</body>
</html>
I'm trying to select everything in the <form>
except for the tag with a particular name (innerhtml, that is). Here's the query I'm using:
$query = "//form//td[not(normalize-space() = 'Stuff 2')]";
This successfully filters out that particular <td>
of content, but the problem is that it then only returns <td>
content. As you can see, there are other <input>
that are not in the <table>
and I need those too.
Can anyone help with this query please? Thanks!