Regarding XBee Communication

Hi,
I recently bought two XBee modules, Arduino XBee shields and Arduino UNO Board. One XBee module is coordinator and other one is End node. I am able to establish communication between Coordinator XBee module and End node XBee Module. when i try to send data from end node XBee Module to coordinator XBee Module communication is not working.

char msg = ' '; 

void setup() {
  Serial.begin(9600);

}
void loop() {
  while(Serial.available() > 0) {
    msg=Serial.read();
    Serial.print(msg);
  }
  delay(1000);
}

can any one suggest me some solution for it?
Thanks in advance.......