query on xpath, xml
===

I have input xml file. As below.

    <maindocument>
	<first>
		<testing>random text</testing>
		<checking>random test</checking>
	</first>
	<import>
		<downloading>valuable text</downloading>
	</import>
</maindocument>

Here is the output XML i want 

    <maindoucment>
	<import>
		<doctype>Valuable</doctype>
		<docint>text</docint>
	</import>
    </maindoucment>

when i searched in Google they i am getting the result as XSL:Copy

Please guide me how to solve this.

Regards
Karthic