Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
thank you in advance.
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="...">
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="...">