Buy an XP code and partition away.
Not easy because new computers preinstalled with Windows 8 has secure boot.