Kinas stabschef Xi Jinping hälsade personligen på USA:s stabschef Donald Trump vid toppmötet Asia Pacific Economic Cooperation i Shenzhen i Kina.