XML to FTP

Hello.

I use latest n8n version.

I am having a difficult time to create a XML file and upload it to a FTP server.

Is there a guide on how to do that?

To use the FTP node i must have a binary file.

If i try to use Move Binary Data the file contents that uploads in the FTP server are not valid xml.

It looks like that

{"data":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<products>\n

Thank you.

HI @Mulen, you probably want to use the Use Raw Data option on your Move Binary Data node like so:

Workflow:

This would result in the following file content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
  <activity>Take a caffeine nap</activity>
  <type>relaxation</type>
  <participants>1</participants>
  <price>0.1</price>
  <link/>
  <key>5092652</key>
  <accessibility>0.08</accessibility>
</root>

Hope this helps!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.