Batch XML export with multiple root nodes

Created on 25 February 2020, almost 5 years ago
Updated 10 January 2025, 26 days ago

Problem/Motivation

When exporting XML with a batch process (100 items per batch) the root node is repeated on every 100 items.
So if an export is request with 300 items, when the XML file is created - it contains 3 root nodes and 3 declarations of the XML version (<?xml version="1.0">). Something like:

<?xml version ="1.0"?>
<items>... 100 items ...</items>
<?xml version="1.0"?>
<items>... 100 items ...</items>

How can we remove the duplicate root nodes?

Proposed resolution

Remove the duplicate root nodes and xml declaration

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇨🇭Switzerland Ginovski Bern

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024