Turn on Internet connection sharing on the xp box and in the tcp/ip prefs for the mac, turn on dhcp.
Or get a broadband router and put that between your cable/dsl modem and your hub, or better yet, get a router/switch combo for like $100. Netgear makes a 4 or 8 port 10/100 switch with a built in router that would work like a charm.