How can i install xp in hp laptop

You might have to go into your BIOS and change the SATA setting from native HCPI to native IDE. If you can't do that, there's a very good chance that you won't be able to install XP.