|MS-DOS is a 16 bit single task Operating System.|
Windows XP is a 32 bit multi tasking Operating system.
The two are incompatible.
The days when DOS and Windows co-existed ended with Windows 98. Then DOS hosted Windows 98. You are expecting Windows XP to host DOS. Cant be done.
If you have to have DOS 5 or 6.22 you are going to have to install it as a completely separate Operating System.