UPDATE 6-Hong Kong police criticised over failure to stop attacks on protesters

* Authorities condemn escalating violence in Hong Kong

* 45 injured in "triad" gang-style attacks on protesters

* Police clash with activists after encirclement of China office

* Trump says Xi has "acted responsibly", hopes "will do the right thing"

* (Add quotes from Trump)

By James Pomfret and Donny Kwok

HONG KONG, July 22 (Reuters) - Hong Kong police faced criticism on Monday for an apparent failure to protect anti-government protesters and passersby from attack by what opposition politicians suspected were gang members at a train station over the weekend.

Sunday's attack came during a night of escalating violence that opened new fronts in Hong Kong's widening crisis over an extradition bill that could see people from the territory sent to China for trial in Communist Party-controlled courts.

Protesters had earlier on Sunday surrounded China's main representative office in the Asian financial hub and defaced walls and signs and clashed with police.

Hong Kong's Beijing-backed leader, Carrie Lam, condemned the attack on the Central Government Liaison Office, saying it was a "challenge" to national sovereignty.

She condemned violent behaviour of any kind and said she had been shocked by the clashes at the station, adding that police would investigate fully. "Violence will only breed more violence," Lam said while flanked by senior city officials.

Some politicians and activists have linked Hong Kong's shadowy network of triad criminal gangs to political intimidation and violence in recent years, sometimes against pro-democracy activists and critics of Beijing.

TRUMP HOPES XI "WILL DO THE RIGHT THING"

In Washington, U.S. President Donald Trump said he believed Chinese President Xi Jinping has acted "very responsibly" with the protests, which have been the Chinese leader's greatest popular challenge since he came to power in 2012.

"I know that that's a very important situation for President Xi," Trump told reporters when asked about images of protesters being beaten and whether Beijing might have allowed this to happen.

"You could say what you said, but you could also say that he has allowed that to go on for a long time and ... I think it's been relatively nonviolent."

Asked if he thought the protests should be allowed to continue, Trump said: "Well, they are ... I don't think China has stopped them. China could stop them if they wanted. ... I think that President Xi of China has acted responsibly, very responsibly. ... I hope that President Xi will do the right thing, but it has been going on a long time, there's no question ..."