One way is to use Oracle VM VirtualBox and either use the existing XP Mode or extract the files from an XP Mode download you have.
There are many ways to run an XP VM on Windows 10. Warning: this may violate the XP Mode licensing agreement. However, if you are one of the many people who have an XP Mode virtual machine and need to continue using it for some reason, this is one way to achieve that. If you need to run XP on Windows 10, you should start from scratch with a new XP install and a valid XP licence key. Windows XP Mode only works under Windows 7. You are running Windows 10 and you want keep using an XP Mode virtual machine after its activation has expired.
Know a better answer? Let me know! How to activate an XP Mode VM on Windows 10 Updated about 3 yrs, 7 mths ago (March 8, 2018). How To Activate An XP Mode VM On Windows 10