Xi Jinping has raced to take advantage of the increased uncertainty sparked by Donald Trump.