0338 GMT October 16, 2018
Xi, who has emerged as the most powerful Chinese leader in decades, and Trump, whose woes include dismal approval ratings at home, spoke moments apart at the APEC summit in the Vietnamese city of Danang, AFP reported.
Trump in turns lavished praise on Asia-Pacific nations and accused them of undercutting the world's largest economy, saying US interests had been ill-served by the architecture of global trade.
He vowed his country will "no longer tolerate" unfair trade, closed markets and intellectual property theft.
"We are not going to let the United States be taken advantage of anymore," he added, taking a swipe at the World Trade Organization for failing to police free trade infringements.
"I am always going to put America first the same way I expect all of you in this room to put your countries first."
In response, Xi swiftly moved to occupy the space vacated by Trump, positioning China as the champion of a world with fewer barriers to commerce.
He defended globalization, which has seen his country pull itself from poverty to become a superpower in three decades, calling it an "irreversible historical trend".
But as gripes over trade imbalances, job losses and social inequality abound, he conceded that free trade philosophy needed to be repurposed to be "more open, more balanced, more equitable"
Ahead of his speech, China announced it will further open the country's financial markets to foreign firms, a key demand from the US and other global investors who have long complained about strict limits on access to the world's number-two economy.
Trump arrived in Vietnam from Beijing where he gushed in his praise of Xi, calling his host "a very special man" in a trip rich with photo opportunities.
Free trade on the rack
APEC brings together the big hitters of business and politics, including Japan's Shinzo Abe and Russia's Vladimir Putin.
Russia and the US gave mixed messages about whether their leaders would meet in Danang, with the White House ruling out an encounter but the Kremlin saying it could still happen.
A face-to-face would be a box office event, with Russia accused of interfering in the US election last year that brought the billionaire one-time reality TV star to power.
The rise of Trump as leader of the world's biggest economy risks unpicking decades of US-led economic diplomacy that webbed global economies together with free trade and low tariff pacts.
He has pledged to wring a better deal from countries the US has large trade deficits with – including China – and bring jobs back to the hollowed out industrial heartland that voted for him.
But proponents of free trade, including many allies, have looked on aghast as the president tears up the rule book and anti-globalization arguments ricochet through the US and Europe.
Trump has already pulled Washington's support from the sprawling 12-nation Trans Pacific Partnership (TPP) trade pact and vowed to renegotiate NAFTA, a trade deal between the US, Canada and Mexico.