Using the Xbee to sleep Arduino

Hi,

Can you please send me an example code that uses pin interchange to wake up the arduino.

Thanku very much