President Xi Jinping reaffirmed on Wednesday the enduring friendship between China and Pakistan underscoring both nations' shared commitment to building a closer bilateral community with a shared future, as he hosted visiting Pakistani President Asif Ali Zardari in Beijing.