Presidents Xi Jinping and Donald Trump exchanged messages to mark 40 years of formal relations. Photo: AFP