Windows XP reached end-of-life in 2014 and should not be connected to the internet if reinstalled, due to unpatched security vulnerabilities. For donation, install a modern lightweight Linux distribution instead.
To permanently erase all personal data from a Windows XP machine so it cannot be recovered by the next owner or recycler, and to leave the computer ready for disposal or donation. how to wipe windows xp for recycling