Support YAML and XML return types