1. i think you'd better take you trip after China holiday if you want to go to Bejing, it's too hot at that time in Beijing.
2.if you want from Beijing to Shanghai,i think you'd better taking plane, Flight time + wait time<3 hours,but if you taking the train ,it's will cost you at least 10 hours.
P.S
Guilin is so beautiful,you would like there