How to use like in XPath?

后端 未结 3 1659
轮回少年
轮回少年 2021-01-02 02:20

I have a page that searches with filters. I have this code for example,

xmlTempResultSearch = xmlResidentListDisplay.selectNodes(\"//PeopleList/Row[@LastName         


        
3条回答
  •  感情败类
    2021-01-02 02:41

    You can use start-with function and not function. Reference:

    http://www.w3schools.com/xpath/xpath_functions.asp

    xmlTempResultSearch = xmlResidentListDisplay.selectNodes("//PeopleList/Row[not(starts-with(@LastName,'"+ txtSearch.value +"'))]");
    

提交回复
热议问题