for the amount of money its gonna cost to fix that pos you could've got another xj, one thats not totalled. chances are that thing needs alot more work than just an A pillar and door, those things are very weak and the roof is'nt intended to hold the weight of the car when it rolled, the whole roof is probrably swayed to some extent. after replacing the roof and all the frame work, new door, quarter blah blah then all the body and paint work its gonna need after you weld it up, its gonna be a mess, i'd part the thing out or sell it.
eric