I have the below input xml:
<?xml version="1.0" encoding="UTF-8"?>
<createdInstances xmlns="http://www.company.com/awd/rest/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<folderInstance recordType="folder" id="2017-08-04-04.22.02.446460F01">
<link rel="form" type="application/vnd.company.awd+xml" href="awdServer/awd/services/v1/instances/2017-08-04-04.22.02.446460F01/form" />
<link rel="history" type="application/vnd.company.awd+xml" href="awdServer/awd/services/v1/instances/2017-08-04-04.22.02.446460F01/history" />
</folderInstance>
</createdInstances>
I need to get Xpath for id
value of folderInstance
using java(i.e 2017-08-04-04.22.02.446460F01
in this case). I tried with the below expression, but it's not working.
//createdInstances/folderInstance@id
Any help would be appreciated.