To run both XP and Windows 7, you need to set up a multiboot. This requires that XP is installed first and Windows 7 is installed second. Take a look at this http://windows.microsoft.com/en-us/windows7/Install-more-than-one-operating-system-multiboot
and let us know if you still have questions.
Microsoft Windows Outreach