Have to format XP(dual boot with Ubuntu) -- some queries

Yep that should do it! Now save the file somewhere and restore it after windows install with an ubuntu live cd. Just to be sure though, back up your data!