Use different api for writing xml.

Authored by vandenoever on Jul 23 2013, 8:20 PM.