XPath select based on child value(s)

前端 未结 2 1827
你的背包
你的背包 2021-02-20 13:04

Here\'s some xml:


    
        Tom
        
            Science
          


        
2条回答
  •  名媛妹妹
    2021-02-20 13:21

    You can go with //book[./genres/genre = 'Romance'] and //book[./genres/genre = 'Romance' and ./genres/genre = 'Politics'], respectively

提交回复
热议问题