code: private function _asXml ($data)
  	{
  		$response = \Craft::$app->getResponse();
  		$response->content = $data;
  		$response->format = Response::FORMAT_XML;
  
  		return $response;
  	}
docs: =========================================================================