Xi Jinping is elected Chinese president and chairman of the Central Military Commission of the People's Republic of China at the fifth plenary meeting of the first session of the 13th National People's Congress (NPC) at the Great Hall of the People in Beijing, capital of China, March 17, 2018. (Xinhua/Jin Liwang)

BEIJING, March 17 (Xinhua) -- Xi Jinping was elected Chinese president by a unanimous vote Saturday morning at the ongoing session of the 13th National People's Congress.

Xi, 64, was also elected chairman of the Central Military Commission (CMC) of the People's Republic of China (PRC) by a unanimous vote.

Right after the election, Xi took a public oath of allegiance to the Constitution in the Great Hall of the People.

This was the first time for a Chinese president to take such an oath upon assuming office.

Last October, he was elected general secretary of the Central Committee of the Communist Party of China (CPC) and appointed CMC chairman of the CPC at the first plenary session of the 19th CPC Central Committee.

In 2007, Xi joined the central leadership as a member of the Standing Committee of the Political Bureau of the CPC Central Committee.

He was first elected general secretary of the CPC Central Committee in late 2012, and Chinese president and CMC chairman of the PRC in March 2013.