How do I get an xbee to upload a scketch

Thanks for the links.
I have tried and failed.
The hardware is correct.