XML code characters being auto-removed when posting to google docs

  • 18 August 2023
  • 2 replies

Userlevel 1

I am trying to build an xml document containing customer orders to be automatically sent to my manufacturer.

Orders come in from my online shop (Ecwid platform) in a particular format which needs to be reformatted to a different layout for my manufacturer.

I’ve managed to use the formatting tool to arrange them in the layout that my manufacturer needs.

They require it in a text file attached to an email in xml layout like this (partial example file shown);


<?xml version="1.0" encoding="UTF-8"?>




   <Order_Date>2023-08-17 12:40:06 +0000</Order_Date>



   <Name>Joe Bloggs</Name>

   <AddressLine>1 Any Street</AddressLine>





   <Postcode>AA1 12AA</Postcode>







I’ve successfully built the formatting steps to build this using the Convert to ASCII formatter step, but when it’s passed to google docs all the XML specific code characters and everything in between such < / > are removed and the following is what is created in the google doc;


2023-08-17 12:40:06 +0000



Joe Bloggs

1 Any Street





AA1 12AA




As the contents of the google doc require it to contain the XML layout codes, I’m stuck. Anyone have any pointers as to what I’m doing wrong or a fix for this?


Thanks in advance.




This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +14

Hi @Crawshs 

Good question.

To help us have enough context, please post detailed screenshots with how your Zap steps are configured.

Userlevel 1

So the conversion and creation of the text content for the google doc works fine, it’s only when the google doc is created that the xml codes are stripped out. Unfortunately I can’t see any options to tell the google doc creation step to treat the output as just text and not formatting codes.

It should be noted that this is just the start of my zap, further stages will append more xml code into the same google doc based on a looping iteration to handle mutiple product lines in the order.