views:

66

answers:

4

/html/body/input[@id='query' and @name='query' and @value='Search Text']

+1  A: 

yes, its valid. It means your selecting the node input which has the attribute id as query, name as query and value as search text

Andrew Keith
+1  A: 

Yes it is this will get all the input's that have a direct parent of body which in turn has a direct parent html where html has to be the root element. Further more the selected input's must have an id attribute with the value query AND a name attribute with the value query AND a value attribute with the value Search Text.

Martijn Laarman
+4  A: 

Yes, it's valid.

It points to this element (or elements, if it's more than one of them);

<html>
    <body>
        <input id="query" name="query" value="Search Text" />
...
Björn
+1  A: 

all the input elements, within a body element within a html element, with attribute id='query' and attribute name='query' and attribute value='Search Text'.

Preet Sangha