There are several options for running Windows XP inside Windows 10. Oracle VirtualBox is a free virtualization platform that works with Windows 10 Home and Pro. Hyper-V is Microsoft's built-in virtualization platform, available with Windows 10 Pro, Enterprise, and Education, but not Home. VMware Workstation is another option that supports Windows XP virtual machines. QEMU is an open-source alternative that provides greater flexibility but requires more configuration. Hyper-V is a good choice if you are running Windows 10 Pro.
To run Windows XP using Hyper-V, first enable Hyper-V through Control Panel by selecting Programs > Turn Windows features on or off. Enable both Hyper-V Management Tools and Hyper-V Platform, then restart the computer. Alternatively, run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All in an elevated PowerShell session.
Open Hyper-V Manager and select New > Virtual Machine. Specify a name for the VM, such as Windows XP, and select Generation 1, which is required for Windows XP's legacy BIOS-based installation. Assign 512 MB to 1 GB of RAM, configure networking if required, and create a virtual hard disk of approximately 10 to 20 GB. At the installation options stage, select your Windows XP ISO file as the bootable image.
Start the VM, connect to it through Hyper-V Manager, and follow the Windows XP Setup process to install the operating system onto the virtual hard disk. Once installation is complete, Windows XP will run in a separate window within Windows 10. Note that Windows XP has limited Hyper-V integration support, and because it is unsupported and vulnerable, avoid providing unrestricted Internet access to the VM.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin