Sending and receiving data via xbee

Hello,

I have two arduino leo with xbee shields and xbee pros, I have successfully configured the xbees through XCTU and can send data via XCTU to and from the xbees. Now I need to program one arduino to transmit one line of data to the other arduino which will then display it. I want to transmit the text “Hello World 123” but I am not sure how to do this. I followed the example here: http://stackoverflow.com/questions/1419 … o-and-xbee but it did not work. Could someone show me how to do this, I am very new to arduinos.

Xbee series 1 or series 2? They differ greatly.