You can use negation: //*[@id="mydiv" and @class!="exclass"] If the class attribute may not exist on all nodes, you need this: //*[@id="mydiv" and ...
確定! 回上一頁