Perhaps if you fired up google, you'd see that there is not "the Xbee shield". There are a number of XBee shields. Which one you have might be important.
The pin layout for the DUE is the same as that for the Mega, except for A12 to A15 changing purposes on the DUE.
Also, is it possible to connect all shields available for arduino uno to arduino due ??