You are here

function services_xml_output in Services 5

Same name and namespace in other branches
  1. 6 services.module \services_xml_output()
  2. 6.2 services.module \services_xml_output()
  3. 7 services.module \services_xml_output()
1 call to services_xml_output()
services_crossdomain_xml in ./services.module

File

./services.module, line 284
The module which provides the core code for drupal services

Code

function services_xml_output($xml) {
  $xml = '<?xml version="1.0"?>' . "\n" . $xml;
  header('Connection: close');
  header('Content-Length: ' . strlen($xml));
  header('Content-Type: text/xml');
  header('Date: ' . date('r'));
  echo $xml;
  exit;
}