Obama, Xi vow to narrow differences, work closely on NKorea