The following suggestions will help the process of answering threads in the most efficient manner.
Do not hijack other member's threads, you will not get replies, instead start your own question.
What have you tried? We are not here to mock mistakes and showing effort made will make us more inclined to help you than simply posting your issue and expecting us to fully code it for you.
Provide the XML you are working with, or a snippet of it, it is time consuming and counter-productive to generate test XML.
Provide the expected output XML, a copy of the actual output you would expect from the snippet of input XML is an underestimated help tool when creating solutions to the problems.
Clearly explain what is required, transformations in particular can be complex and so clarity of what is required will reduce unnecessary delays/clarification.
Namespaces, if your XML uses them and the snippet does not show this please inform us, they will change the outcome of some transformations when we don't know about them.
Happy posting!