XSLT - How to select XML Attribute by Attribute?

前端 未结 5 641
陌清茗
陌清茗 2020-12-25 12:20

this is the structure of my source xml:






        
5条回答
  •  既然无缘
    2020-12-25 12:54

    There are two problems with your xpath - first you need to remove the child selector from after Data like phihag mentioned. Also you forgot to include root in your xpath. Here is what you want to do:

    select="/root/DataSet/Data[@Value1='2']/@Value2"
    

提交回复
热议问题