Chinese president to attend G20 summit