function xmlrpc_message_tag_open in Drupal 6
Same name and namespace in other branches
- 4 includes/xmlrpc.inc \xmlrpc_message_tag_open()
- 5 includes/xmlrpc.inc \xmlrpc_message_tag_open()
- 7 includes/xmlrpc.inc \xmlrpc_message_tag_open()
1 string reference to 'xmlrpc_message_tag_open'
- xmlrpc_message_parse in includes/
xmlrpc.inc - Parse an XML-RPC message. If parsing fails, the faultCode and faultString will be added to the message object.
File
- includes/
xmlrpc.inc, line 233 - Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 Version 1.7 (beta) - Simon Willison, 23rd May 2005 Site: http://scripts.incutio.com/xmlrpc/ Manual: http://scripts.incutio.com/xmlrpc/manual.php This…
Code
function xmlrpc_message_tag_open($parser, $tag, $attr) {
$xmlrpc_message = xmlrpc_message_get();
$xmlrpc_message->current_tag_contents = '';
$xmlrpc_message->last_open = $tag;
switch ($tag) {
case 'methodCall':
case 'methodResponse':
case 'fault':
$xmlrpc_message->messagetype = $tag;
break;
// Deal with stacks of arrays and structs
case 'data':
$xmlrpc_message->array_structs_types[] = 'array';
$xmlrpc_message->array_structs[] = array();
break;
case 'struct':
$xmlrpc_message->array_structs_types[] = 'struct';
$xmlrpc_message->array_structs[] = array();
break;
}
xmlrpc_message_set($xmlrpc_message);
}