Forum Discussion
Hi,
I already have a xml file and I wanted to zip this xml file. Can you suggest how to do , the above method is not working for me. I use below snaps
file Reader → XML Parser → Mapper → Document to Binary → Zip File writer
in mapper I m not able to set values against content ,content location due to which document to binary snap error out.
Please suggest , i m stuck in it
Are you wanting to put the file in the Zip in the XML format? Since you used the XML Parser with the Document To Binary, you’re effectively turning it into JSON. You probably don’t want that.
The ZipFile Writer will get the name for the file in the zip from the ‘content-location’ property in the binary document header. The FileReader will add this property to the header, so the name of the file in the zip should be the same as where it was read from.