I am trying to solve a problem where in i have to manipulate the incoming xml to handle multiple scenarios.
consider below XML,