Yes, 00-04 is WD22, 05+ is N50. 98-04 Frontier is D22U, 05+ is D40. You can see them all here:
http://www.nissan-techinfo.com/nissan/TSB/TSB_xml/nmIndex.asp None of the Xterras prior to 2005 have a chipped key.
_________________________
Tip: see if your question has already been answered before asking it. Try our handy-dandy search tool!