Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
chou
Contributor III
Contributor III

Append xml with different loop and nameSpace

Hello,

I need to generate this type of data in xml file :

<root xmlns="http://URL" xmlns:xsi="http:/URL2">

<loops1>

<loop1>.........

</loop1>

</loops1>

<loops2>

<loop2>.........

</loop2>

</loops2>

I am using tAdvancedFileOutputXML, for the first part, I have generated the file successfully, but in the second part, I am appending the file, I set loops2 as group element and loop2 as loop element. I have always this error :

WARN : the root tag is not same when appending

[ERROR]- tAFOX_1 - the root tag is not same when appending

[FATAL] 21:34:58

- tAdvancedFileOutputXML_1 null

java.lang.NullPointerException: null

Can you please help ?

5 Replies
Anonymous
Not applicable

Hi

Can you upload a screenshot of XMl tree configuration? The component requires a group element when using the 'Append the source XML file' option.

 

Regards

Shong

TCalabro1652773885
Contributor
Contributor

I am at this point searching for some obvious plan.

 

alaskasworld

chou
Contributor III
Contributor III
Author

Hello, here are the configuration of component 1 and 2:

 

 

chou
Contributor III
Contributor III
Author

 
Anonymous
Not applicable

@chahnez hachaichi​ , the loops1 and loops2 should have the same root element and the same group element, see below.

0695b00000Rhl6AAAR.png0695b00000Rhl6PAAR.png 

Regards

Shong