US President Barack Obama greeted visiting Chinese counterpart Xi Jinping with a “ni hao” yesterday as the two leaders spent almost three hours over a private dinner discussing issues that have been straining bilateral ties.