For example this is the output I get from Web activity:
`{
"Response": "<?xml version = 'xyz'?>
<Head>
<Blobs>
<Blob>
<Name>Max</Name>
<location>USA</location>
</Blob>
<Blob>
<Name>Robert</Name>
<location>UK</location>
</Blob>
<Blob>
<Name>Nick</Name>
<location>USA</location>
</Blob>
</Blobs>
</Head>",
"Json1": {
"Json1_1": "value",
"Json1_1": "value",
"Json1_1": "value",
},
"Json2": "value",
"Json3": 0,
"Json4": {
"json4_1": 0`your text`
}
}`
I want to get all Names from XML data. So I am using set variable activity and taking the web activity output as input.
I tried using expression: @xpath(xml(activity('Web1').output.Response), 'string(//Name)') This is giving me only first name of the xml but I want all the name tag values from the XML above. The variable I used in the set varibale activity was array type.
Can someone help me to get all the name values from the output of web activity.
Thanks in advance.