Is it possible to write a recursion function or formula such that in the target xml it checks for a condition, if it satisfies populate the data there otherwise go under next level node and populate there
source db has a table named folder. it has a column named parent_folder_id. if this column value is null that means the current folder is at root level and if it has got a value then it means the current folder has a parent with particular parent_folder_id.
Now in target xml the structure is somewhat like this. A root folder has choice[one of] either it can have child folder, document, documentref or alias. Now i need to properly map like this
folder
|__folder1--> document2
|__document1
then the target xml should have one root folder with one child document (document1) and child folder (folder1) and this child folder should have child document (document2)


