How to use like in XPath?

后端 未结 3 1670
轮回少年
轮回少年 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:43

    you can use contains() function of XPath:

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

提交回复
热议问题