Why are the XBees connected to the hardware serial port? Get them off the hardware serial port so that you can use it for debugging.
You put two bytes in payload[] on the sending end. Then, on the receiving end, you use
analogWrite(dataLed, rx.getData(0));
data1=rx.getData(0);
Serial.print("Data :");
Serial.print(data1);
How many bytes does getData() read? What does the argument to getData() mean? What is the return type from getData()?
Hint: 1, an offset, uint8_t.
You are sending two bytes and reading one byte.