This is an advanced feature, but useful if you’re working with XML and JSON files.
By default, I’ll show you what’s happening when extracting data to an XML or a JSON file :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_01.jpg)
If you want to learn more about Multi-Target, click here.
The JSON file will be :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_02.jpg)
The XML file :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_03.jpg)
Now, if I want to change the XML main tag, I just have to use an alias on my query :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_04.jpg)
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_05.jpg)
Time to script !
Supported Keywords :
- [JOBNAME]
- [DATETIME]
- [ROWCOUNT]
- [FILECOUNT]
- [USER]
- [anyInputFieldName]
I’ll set the Tag script on the “Target” settings :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2021/01/jsonxmltag_06-1-1024x243.jpg)
The JSON file content :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_07.jpg)
The XML file content :
![](https://www.fuzible-app.com/wordpress/wp-content/uploads/2020/12/jsonxmltag_08.jpg)