Xpath to select value of sibling attribute with namespace

后端 未结 3 1825
囚心锁ツ
囚心锁ツ 2020-12-20 22:41

I\'m struggling to get an XPath defined to return the value of the uniqueappversionid from the following XML:



        
3条回答
  •  庸人自扰
    2020-12-20 23:36

    With a prefix bound to http://schemas.android.com/apk/res/android namespace:

    /manifest
       /application
          /meta-data[@a:name='uniqueappversionid']
             /@a:value
    

提交回复
热议问题