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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dawn2
Contributor II
Contributor II

tAdvancedFileOutputXML how to move an attribute' position in XML tree

Hello,

I am developing an XML report with 1000 tree attributes. About half of the attributes are loaded from a .xsd file and the other half was customized information and manually added.

I was accidentally deleted an attribute when re-mapping the data. The attribute was in the middle of the element list. I could add the attribute back to the element, but don't find a way to move it to the original location.

Is there a way to move attributes in tAdvancedFileOutputXML, or maybe a way to export the modified XML tree to .xsd then I can re-load?

Manually re-enter the customized information will take humongous time! I am looking for an easier solution for my issue.

Thanks,

Dawn

Labels (5)
3 Replies
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hi @Yudong qian​ 

 

I'm afraid that's not possible from the graphical interface.

 

You could try to overcome this by editing the source .item file inside your workspace, but be careful and make a backup of it first.

Dawn2
Contributor II
Contributor II
Author

😒 Thank you, I will try.

Dawn2
Contributor II
Contributor II
Author

It works after updating the order value in .item file, like <elementValue elementRef="ORDER" value="470"/>. However, I have to manually update the downstream order numbers, 470, 471, 472... but it still saved me lots of time!

 

Thank you, @Anselmo Peixoto​!