uploading sketch xbee to xbee

I am trying to think of how this would work in API mode but I think its impossible. Does anybody know otherwise?

On the receiving end, how are you going to press the reset button?

Have a look here Xbee Adapter - wireless Arduino programming Not sure if it works with version 2 xbees though