North Korean leader Kim Jong Un also sent a message to Xi saying their countries' "invincible friendship will be immortal on the road of accomplishing the cause of socialism," said Pyongyang's state news agency KCNA on Sunday.
North Korea was among the first countries to recognise the People's Republic of China after it was founded in 1949.
US-N.Korea talks end in contrasting assessments
Xi said the relationship between the Asian neighbours had played an "important and positive role in maintaining regional peace and stability," said Xinhua.
Since March 2018, Xi and Kim have met five times.
Xi was the first Chinese leader to visit the reclusive North in 14 years when he made a highly symbolic trip to the nuclear-armed state in June.
Kim said the two countries would "steadily defend the cause of socialism and preserve peace and stability of the Korean peninsula and the world," according to KCNA.
The warm words from Beijing follow its huge military parade Tuesday to mark the 70th anniversary of the founding a Communist China and come a day after the latest round of nuclear talks between the United States (US) and North Korea ended in Sweden.
South Korea begins annual war games to defend against Japan
Pyongyang - under three sets of United Nations (UN) sanctions in a bid to force it to give up its nuclear and ballistic weapons programmes - said the talks broke down because the US "disappointed us greatly".
Washington, however, said there had been "good discussions".
The talks followed months of stalemate after a February meeting between Kim and US President Donald Trump, and came after Pyongyang's defiant test of a sea-launched ballistic missile on Wednesday.
Since the US-North Korea talks began, Russia and China have been calling for the United Nations to start lifting sanctions so as to create momentum towards the North's denuclearisation.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ