You are here

function xmlrpc_server_output in Drupal 7

Same name and namespace in other branches
  1. 4 includes/xmlrpcs.inc \xmlrpc_server_output()
  2. 5 includes/xmlrpcs.inc \xmlrpc_server_output()
  3. 6 includes/xmlrpcs.inc \xmlrpc_server_output()

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 includes/xmlrpcs.inc
Invokes XML-RPC methods on this server.
xmlrpc_server_error in includes/xmlrpcs.inc
Throws an XML-RPC error.

File

includes/xmlrpcs.inc, line 126
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();
}