Extract value of attribute node via XPath

后端 未结 7 1090
醉酒成梦
醉酒成梦 2020-11-28 01:59

How can I extract the value of an attribute node via XPath?

A sample XML file is:


  

        
7条回答
  •  悲&欢浪女
    2020-11-28 02:06

    //Parent/Children[@  Attribute='value']/@Attribute
    

    This is the case which can be used where element is having 2 attribute and we can get the one attribute with the help of another one.

提交回复
热议问题