Two conditions using OR in XPATH

前端 未结 4 804
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 13:42

I have a textbox, \'txtSearch\'. I am using it to search people by Last Name. this is my code.

var xmlTempResultSearch = xmlResidentListDisplay.selectNodes(
         


        
4条回答
  •  离开以前
    2020-12-01 14:37

    and and or are allowed inside the condition: [here]. Or you may also use multiple paths in one XPath expression using the pipe sign.

    //PeopleList/Row[c1] | //PeopleList/Row[c2]

提交回复
热议问题