Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lucacupito
Contributor II
Contributor II

Talend 7.3.1 – Root tag namespace prefix tns: missing in XML output (worked in 6.3)

Hello everyone,

Since migrating from Talend 6.3.1 (build 20161216_1026) to Talend 7.3.1 (R2024-10), we’ve encountered an issue with XML generation using the tAdvancedFileOutputXML component.

In Talend 6.3, our job correctly produced an XML file where the root element used a prefixed tag name as expected:
<?xml version="1.0" encoding="ISO-8859-15"?>
<tns:intestazione_file xmlns:tns="..."

After the upgrade to Talend 7.3.1, using the same job logic and same XML root tag configuration, the output XML unexpectedly drops the namespace prefix from the root tag:
<intestazione_file xmlns:tns="..."
...
</intestazione_file>
The job runs fine and no errors are thrown, but the absence of the tns: prefix on the root tag makes the XML invalid

Below you can find the component settings

lucacupito_0-1749732964171.png

lucacupito_1-1749733074304.png


thank you in advance.

 

 

Labels (3)
1 Solution

Accepted Solutions
lucacupito
Contributor II
Contributor II
Author

I’d like to share a workaround I found for this issue.
In the tAdvancedFileOutputXML component, I changed the root tag name from:
tns:intestazione_file
to:
tns:tns:intestazione_file.

This forced Talend to generate the correct output:

<tns:intestazione_file xmlns:tns="...">




View solution in original post

1 Reply
lucacupito
Contributor II
Contributor II
Author

I’d like to share a workaround I found for this issue.
In the tAdvancedFileOutputXML component, I changed the root tag name from:
tns:intestazione_file
to:
tns:tns:intestazione_file.

This forced Talend to generate the correct output:

<tns:intestazione_file xmlns:tns="...">