The two leaders agreed that their first meeting, held at the seaside Mar-a-Lago resort in the USA state of Florida, was "positive and fruitful".
China and the United States share important interests in safeguarding cyber security, said Xi, adding that the two sides should make good use of the newly installed dialogue mechanism on law-enforcement and cyber security so as to jointly build a peaceful, secure, open, cooperative and orderly cyberspace.
Hwang also said the summit "seemed to be an occasion to reaffirm the strong alliance between Seoul and Washington", according to comments released by the acting president's office.
The friendly tone was a far cry from Trump's acerbic campaign denouncements about China's "rape" of the United States economy and his vow to punish Beijing with punitive tariffs.
Beijing's most powerful leader in decades reciprocated, inviting the neophyte president on a coveted state visit to China later in the year.
The U.S. administration's first recourse is very likely to be economic - pushing China to crack down on Chinese banks and companies said to provide North Korea access to the worldwide financial system.
Investigators will have until April 19 to keep Park in detention before formally indicting her.
Ahead of the dinner, Trump said he and Xi already had had a long discussion and had "developed a friendship", and then joked, "I have gotten nothing, absolutely nothing".
Whether any specifics regarding North Korea and trade relationships were resolved, have not been answered at this time.
UK lawmakers back prime minister's call for June 8 election
The Lib Dems believe their anti-Brexit position will draw in voters anxious about the UK's divorce from the EU. Britain's Prime Minister, Theresa May, announced Tuesday a snap general election to b. (/PA via AP).
Trump and Xi, politicians with distinctly different styles and experience levels, appeared cordial and businesslike in their initial interactions, with no outward sign of tensions. "Lots of very potentially bad problems will be going away".
The swift action in Syria could be interpreted as a signal especially to defiant nuclear-armed North Korea - and by extension, its ally China - as well as other countries like Iran and Russian Federation of Trump's willingness to use military force if deemed necessary. But economic adviser Peter Navarro, author of the book "Death by China: Confronting the Dragon - a Global Call to Action", prefers trying to isolate China, in keeping with Trump's "America First" mantra.
Trump s barnstorming presidential campaign past year appeared to set him on course for conflict with China, which he accused of rigging forex markets and cheating at trade to steal American jobs.
North Korea on Sunday condemned the USA bombing in Syria as an "absolutely unacceptable aggression" against a sovereign state and said this justifies Pyongyang's further military development.
Trump's aides insisted he had made good on his pledge to raise concerns about China's trade practices and said there was some headway, with Xi agreeing to a 100-day plan for trade talks aimed at boosting US exports and reducing China's trade surplus with the United States.
"We have a thousand reasons to get China-U.S. relations right, and not one reason to spoil the China-U.S. relationship", Mr. Xi told Mr. Trump.
Taking action against North Korea has been a sticking point in US talks with the Chinese.
Meanwhile, in a posting on its website on Saturday, China's foreign ministry said the countries had agreed to "properly" deal with issues of trade friction. Trump, in the transition period, requested more detailed information about the country's ambitions from the intelligence officials who delivered his initial briefings.
He also last week signed a pair of executive orders focused on reducing the US trade deficit, an apparent shot at China, which accounted for the vast bulk - $347 billion - of last year's $502 billion trade deficit.