Automate complex data migration using this n8n workflow. Read local XML files, convert them to JSON, and import structured records directly into MySQL using a series of powerful n8n node steps.
Download this n8n workflow template and start using it instantly.
Data Engineers needing to ingest legacy XML feeds.
Developers looking for robust n8n templates for data transformation.
Users seeking to implement file processing logic within an n8n workflow.
Anyone who needs to utilize the MySQL n8n node for bulk insertion operations.
This powerful n8n workflow solves the common challenge of integrating structured data stored in the XML format with relational databases like MySQL. Instead of writing complex parsing scripts, this n8n template provides a streamlined process. It uses specialized n8n node configurations to read the binary file, perform necessary parsing (XML to JSON), and then automatically split the data structure for efficient batch processing and insertion into a MySQL database. This is a crucial data pipeline automation demonstrating the flexibility of the n8n automation platform, ensuring data integrity and rapid deployment using minimal custom code within a dedicated n8n node environment.
/home/node/.n8n/intermediate.xml) from the local file system, returning it as a binary buffer.Products.Product) and splits the array, ensuring each individual product record becomes a separate item in the n8n workflow. This prepares the data for efficient row-by-row database insertion.new_table) does not exist, temporarily enable and execute the disabled "Create new table" n8n node to prepare the database schema. Ensure this is run before the main n8n workflow execution. When clicking "Execute Workflow" (n8n trigger):
Function: Initiates the entire data pipeline n8n workflow manually.
Key Configuration: Standard manual execution trigger.
Read Binary Files (n8n node):
Function: Reads the XML file containing the structured product data from the local file system.
Key Configuration: fileSelector: /home/node/.n8n/intermediate.xml.
Extract binary data (Code n8n node):
Function: Converts the binary file content into a usable UTF-8 string, which is necessary for the subsequent parsing n8n node.
Key Configuration: Uses custom JavaScript to read the binary buffer and convert it using toString('utf8').
XML to JSON (n8n node):
Function: Transforms the raw XML string input into a standard JSON object, making the data accessible for field extraction.
Key Configuration: Standard XML parsing parameters are utilized.
Item Lists (n8n node):
Function: Splits the array of products found under the path Products.Product into individual data items, preparing them for batch insertion.
Key Configuration: fieldToSplitOut: Products.Product.
Add new records (MySQL n8n node):
Function: Inserts the parsed product details from each item into the target MySQL newtable.
Key Configuration: table: newtable; Defines column mappings for fields like productCode (mapped from ={{ $json.Code }}) and MSRP (mapped from ={{ $json.Price }}).
Automate brand monitoring on X/Twitter using a powerful n8n workflow. Scrape tweets, analyze sentiment with Google Gemini AI agents, save results to Google Sheets, and dispatch urgent alerts to Slack.

Deploy this powerful n8n workflow to automatically monitor daily tech trends on X (Twitter) and Reddit using a Gemini AI Agent. Generate structured reports in Notion and receive immediate summaries via Telegram. This is a highly efficient n8n template for market intelligence.

Automate daily synchronization of Linear team tickets to Google Sheets using this robust n8n workflow. Perfect for reporting, historical tracking, and custom metrics.

Use this robust n8n workflow template to securely encrypt and decrypt sensitive data within your automation pipelines using XOR logic and Base64 encoding. Ideal for secure data handling via a dedicated n8n node.

Automate custom Yelp data extraction using this robust n8n workflow. It uses a form as an n8n trigger, initiates scraping via Bright Data, and reliably stores structured business information into Google Sheets.


Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.







































