function xmlrpc_server_output

7.x xmlrpcs.inc xmlrpc_server_output($xml)
6.x xmlrpcs.inc xmlrpc_server_output($xml)

Sends XML-RPC output to the browser.

Parameters

string $xml: XML to send to the browser.

2 calls to xmlrpc_server_output()
xmlrpc_server in drupal-7.x/includes/xmlrpcs.inc
Invokes XML-RPC methods on this server.
xmlrpc_server_error in drupal-7.x/includes/xmlrpcs.inc
Throws an XML-RPC error.

File

drupal-7.x/includes/xmlrpcs.inc, line 124
Provides API for defining and handling XML-RPC requests.

Code

function xmlrpc_server_output($xml) {
  $xml = '<?xml version="1.0"?>' . "\n" . $xml;
  drupal_add_http_header('Content-Length', strlen($xml));
  drupal_add_http_header('Content-Type', 'text/xml');
  echo $xml;
  drupal_exit();
}