If you want to run XP as a virtual machine within Win 7 (or any other OS for that matter) then Oracle Virtualbox will do that
https://www.virtualbox.org/
It is free open source software and any OS installed within Virtualbox is entirely self contained from your main operating system and will have no adverse effect on existing software.