Get nodes where child node contains an attribute

前端 未结 5 1167
长情又很酷
长情又很酷 2020-11-30 21:13

Suppose I have the following XML:


  Purgatorio
  Dante Alighieri<         


        
5条回答
  •  渐次进展
    2020-11-30 21:40

    I would think your own suggestion is correct, however the xml is not quite valid. If you are running the //book[title[@lang='it']] on [Your"XML"Here] then the free online xPath testers such as one here will find the expected result.

提交回复
热议问题