Hi,
I’m trying to make an automation which I already did on make.com. As can be seen below, when I get an order from Woocommerce, I create an XML file first and then post it with HTTP.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/45577588-74ab-48e2-9cb7-146dd4a4b306.png)
This is the format that I need to achieve:
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/99f1d048-972d-4cca-b8dd-880fd3e40203.png)
I tried to do it with Code by zapier as can be seen below but the endpoint gave an error as invalid xml file
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/5ad203da-e59e-463c-aeba-f13a34178edc.png)
Any idea how I can solve the problem?