CROC interview question

How do you revert an XML tree?