Is there a way to do a dual-boot with windows xp and ms-dos as in installing ms-dos without effecting your computer that has windows xp is there a way to do that?

It's possible, you have to correct boot.ini file and copy DOS loader and DOS system on your hard drive.