xbee configuration

hello,
Can I configure xbee rf module with arduino proto shield and arduino mega 2560?

Can I configure xbee rf module with arduino proto shield and arduino mega 2560?

And a soldering iron, yes. Be careful removing the ATMega2560 if you want to reuse it. Far easier to get the proper hardware, though:

I configured modules and communicated each other but I have another problem now.I connect gps to arduino and I want to send data which obtain from gps to other arduino board(connected PC).However,the codes don't work.Are there any mistake on codes?

TRANSMITTER CODE
char karakter = 0;
void setup( ) {
Serial.begin(9600);
}
void loop( ) {
if (Serial.available()>0){
karakter = Serial.read();
Serial.print(karakter);

}}

RECEIVER CODE

char msg = ' '; //contains the message from arduino sender
void setup() {
Serial.begin(9600);//Remember that the baud must be the same on both arduinos

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

}
}

Are there any mistake on codes?

Aside from
the horrid
indenting?
Yes.

Look at the transmitter code. Where is it supposed to be reading data from? What is connected to the hardware serial port? You seem to think that you can attach the GPS and the XBee to the same port and that they will magically sort out what to do with the data. That is not the case.