After 4 stops, get off at the National Library Station and transfer to Daxing Line of Metro Line 4 at the same station.
Get off at Xizhimen Station after 2 stops and walk 10 meters to Xizhimen.