Do you know how to configure TCP/IP for your needs?
Otherwise you just need to do Internet Connection Sharing on WinXP, which is simple enough.
If you want to fileshare, I'd advise setting up FTP services on both machines and configure them well (bind them to LAN IPs as well), as opposed to samba.