SoftSerial is an object of the AlfSoftSerial libraby. For more info, read here: Classes amd Objects
#define XBeeSerial SoftSerial
This line tell the compiler to replace "XbeeSerial" by "SoftSerial" everywhere in code. So basically, "XbeeSerial" is just another name for "SoftSerial", they are the same thing.
This line tell the compiler to replace "XbeeSerial" by "SoftSerial" everywhere in code. So basically, "XbeeSerial" is just another name for "SoftSerial", they are the same thing.
The thing to remember is that #defines are like find/replace, which can have surprising consequences if you were expecting something else.