How to check if an element exists in the xml using xpath?

后端 未结 6 1197
野性不改
野性不改 2020-12-08 18:47

Below is my element hierarchy. How to check (using xpath) that AttachedXml element is present under CreditReport of Primary

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 19:03

    take look at my example

     
          
             Editors Choice 
             creative common 
          
     
    

    now how to check if creative common is exist

    tocheading/subj-group/subject/text() = 'creative common'
    

    hope this help you

提交回复
热议问题