You need to be sure of things like seatpost size, seatclamp size, front mech size, top or bottom pull front mech, headtube length, BB width, and a few other variables if your going to swap all your bits over painlessly. Get this wrong and its adds a lot of money to what sounded like a simple frame swap.
Add to that bars and stem, cos would be supprised if what you have is less than 100mm, the bikes your looking at run shorter stems and high rise bars (usually) MAYBE you could buy them now and try em on your XTC??
Not trying to persuade you in eny direction, BUT you would be supprised how different bars, stem would feel on what you have let alone changing expensive stuff like the forks, could be worth a shot.