I am trying to read and format a XML data. I am reading the data using XSLT. I am facing some issue in that. Could someone help me on this.
I have an XML input where I have only 1 parent node and the rest of XML hierarchy is a flat hierarchy.
Here Name node is mandatory node and rest are optional nodes. My requirement is if any optional node is not present in the input XML then I'll create a blank node for it.
but code is failing in the below scenario where I do not have <Salary> node for first employee.
The code I have written is
This is working fine when all the data are coming in the input but in the mentioned scenario its giving output like below
Its creating blank node for wrong employee.
Please let me know if you want any other information