Get all preceding and following siblings for a given node

后端 未结 2 1392
终归单人心
终归单人心 2021-01-27 20:08

I have the following XML snippet:


    
        Specification_Characteristics
        

        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-27 21:03

    I found the answer. The xpath looks like:

    /root/CharacteristicUse/Value[ValueID='555']/following-sibling::Value | /root/CharacteristicUse/Value[ValueID='555']/preceding-sibling::Value
    

提交回复
热议问题