Ding Junhui saw off Xiao Guodong 10-6 to win the Shanghai Masters in snooker's first ever all-Chinese ranking final.