I was able to connect to the Remote xbee and able to toggle remote xbee pins from the Base xbee pins here>>
http://arduino.cc/forum/index.php/topic,111040.0.htmlbut the problem has been that i can do the same using the X-CTU terminal commands like:
+++ok
ATD2=5(enter)
ATWR(enter)
and it works with X-CTU terminal
BUT if i do the same in other terminal the pins do not toggle ,BASICALLY I WANT TO DO IN THE ARDUINO IDE I MEAN IN THE CODE so that i have to put it in the code the same AT commands and toggle PIN's.