A look at a pathfinder chain.
I got mine from a 94 pathfinder. Its pretty much the same case just wider chain. The 4wd shift indicatior switch is in a different location on the box. The Xterra box has a nub on a shift fork that bumps a switch. The pathfinder case doesn't have that nub so the Xterra indicator switch won't be bumped. I needed to create a new shift linkage do to the levers on the cases being different but that was fairly easy.
Any V6 TX10 will work you'll prefer a 94+ unit, they switched from a cable-driven speed sensor to an electronic one then. The switch to the narrower/weaker chain was mid 2001, so try and get one before then.
Try and match manual/automatic, they have a oil gutter at the transfer case input that differs between auto and manual.
Best bet would probably be a 96-01 Pathfinder, or 98-00 Frontier, or of course another 00 Xterra.