You can download 'windows easy transfer' for XP from the Microsoft site.
Windows 7 machines come with it installed.
Microsoft give directions for use on their site, but essentially hook the old and new machines together, via a network for example, then run 'windows easy transfer'.
All your settings, files, etc, will be transferred from your XP machine to the Windows 7 one.