We propose and experimentally demonstrate an all-optical digital-to-analog converter based on cross-phase modulation with temporal integration. The scheme is robust for driving signal noise due to the low-pass filtering feature of the temporal integrator. The proof-of-concept experiment demonstrates the generation of pulse-amplitude modulation (PAM) sequences up to eight levels. The performance of random PAM 2 and PAM 4 signals with different optical signal-to-noise ratios of the binary driving signal is also investigated. The scheme is scalable for high-speed operation with an appropriate dispersion profile of the nonlinear medium.