Create our own XMLSerializer for more consistent output.