Format generated XML