How do I select child elements of any depth using XPath?

后端 未结 4 1435
难免孤独
难免孤独 2021-01-31 01:04

Suppose I have this (simplified):

4条回答
  •  耶瑟儿~
    2021-01-31 01:28

    You're almost there. Simply use:

    //form[@id='myform']//input[@type='submit']
    

    The // shortcut can also be used inside an expression.

提交回复
热议问题