What I'm trying to achieve here is trying to write the child element attributes to the parent. All the child element belongs to same template. There are always 3 child elements (phase1, phase2 and phase3). So i need to identify the phase 1 child element from its attributes and write all the attributes to the parent, similarly for phase 2 and phase 3.
Any ideas ?