According to Example 1 https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#xpath
I should be able to get the following to run, although I am getting the error:
InvalidTemplate. Unable to process template language expressions in action 'Compose_3' inputs: 'The template language function 'xml' parameter is not valid. The provided value cannot be converted to XML: 'Data at the root level is invalid. Line 1, position 1.'.
Compose_4 {
"inputs": "\"<?xml version=\"1.0\"?> <produce> <item> <name>Gala</name> <type>apple</type> <count>20</count> </item> <item> <name>Honeycrisp</name> <type>apple</type> <count>10</count> </item> </produce>\"",
}
"Compose_3": {
"inputs": "@xpath(xml(outputs('Compose_4')),'/produce/item/name')",
"runAfter": {
"Compose_4": [
"Succeeded"
]
},
},
BTW this is obvs not the answer, but I was unable to paste and save this into another Comment...?