Looping over xml entries

Hi, I’m trying to extract TV programs from an XML file. It looks like this after converting it to json:


You can see the Programme entry where tv program list can be found for all times and channels (one programme[n] entry by program).

This is what I’ve done but I can only extract the first entry:

This xml file contains 143 entries but only one is exported (here trying with gmail):

How I can loop over that full list to send each item to Gmail/Notion/whatever?


  • n8n version: ? probably the last one
  • Database (default: SQLite): Postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): railway.app
  • Operating system: ?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @PLegoux

Welcome to the community!

You need a split node to split out the records into Items.
n8n will then automatically process every item one by one in each node. (some exceptions exist)

I assume you are new to n8n, so might be good to do the courses. There is now also video courses.
This should help you understand n8n and how it works. :slight_smile:

1 Like

Thank you so much. I’m not totally new but it’s been a while since I used n8n (2 years?)

1 Like

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