I have an XML where one of the element is optional it may occur or it may not. In case if i check for the element using IsExistence functiod and if the element is present i dont see any issue. In case if the element does not exist the IsExistence does not return false so how can i do this . so that when there is not element i need to map another element to the destination. I need to do this in the Mapping. Any advice
You can do this way...
Use a Logical String Functoid.. which will return true / false based on whether the node exists or not..
Connect the output of this to a Value Mapping Flattening Functoid...
Negate the Output of Logical String Functoid and Connect to another Value Mapping Flattening Functoid.. See the attached image file...