I have a textbox, \'txtSearch\'. I am using it to search people by Last Name. this is my code.
var xmlTempResultSearch = xmlResidentListDisplay.selectNodes(
you can use or / and inside [....]
or
and
[....]
Example:
//*[contains('abc') or contains('def') or text()='abcdef']
More info about operators: http://www.w3schools.com/xpath/xpath_operators.asp