πŸ”¬ Read XML file and store content in Google Sheets

⚑ 6,521 views Β· πŸ”¬ Document Extraction & Analysis

Description

This workflow shows a low code approach to parsing an XML file and storing its contents in a Google Sheets spreadsheet.

image.png

To run the workflow:

How it’s done:

  1. This workflow first downloads an example file using the HTTP Request node and reads this file using the XML node. image.png
  2. It then runs the Item Lists node to split out the individual food items from the example file.
  3. It then splits up the workflow into a separate branch creating a new spreadsheet file using the Google Sheets node. To read the column names we’re using the Object.keys() method inside a Set node.
  4. Once the spreadsheet is created (the workflow waits for this using the Merge node), the data is appended to the newly created sheet (again using the Google Sheets node).

πŸ”— Nodes Used

Google Sheets, HTTP Request, Start

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup