Donald Trump and Vladimir Putin both visited China within days of each other, each receiving elaborate ceremonial welcomes including military honor guards and flag-waving crowds. The nearly identical treatment appeared designed to signal Beijing's balanced diplomatic relationships with both Washington and Moscow.