Hello,
I am trying to get some information from an xml file so I can use that in a Word document.
My xml file look like this:
<?xml version="1.0" encoding="utf-8"?>
<mijnVelden>
<Algemeen>
<GroepAD>true</GroepAD>
</Algemeen>
</mijnVelden>
With the action Get file content i can see the xml output

After this action I want to compose the output with this expression:
xpath(xml(outputs('Get_file_content_-_XML_data')),'string(/mijnVelden/Algemeen/GroepAD)')
When I test my flow is get this error:
Unable to process template language expressions in action 'Compose' inputs at line '1' and column '17118': 'The template language function 'xml' parameter is not valid. The provided value cannot be converted to XML: 'JSON root object has multiple properties. The root object must have a single property in order to create a valid XML document. Consider specifying a DeserializeRootElementName. Path 'outputs.headers'.'. Please see https://aka.ms/logicexpressions#xml for usage details.'.

What am i doing wrong?