In xmlrpc.inc:
serializedata: avoid emitting <string> tags for
string vals, as per the spec it's optional:
case $xmlrpcBoolean: $rs.="<${typ}>" . ($val ? '1' : '0') . "</${typ}>"; break; case $xmlrpcString: // G. Giunta 2004/076/18: strings do not need
an xml tag:
// Go for reduced size of serialized objects
//$rs.="<${typ}>" . htmlspecialchars($val).
"";
$rs.=htmlspecialchars($val);
break;
default:
$rs.="<${typ}>${val}";
xmlrpc_ee: build a shorter string to be later eval'd
to rebuild the xmlrpcval objects from parsed xml: use
the default property of the second parameter for the
xmlrpcval constructor
case 'VALUE': // deal with a string value if (strlen($_xh[$parser]['ac'])>0 && $_xh[$parser]['vt']==$xmlrpcString) { $_xh[$parser]['st'].='"'. $_xh[$parser]['ac'] . '"'; } // This if() detects if no scalar was inside
<VALUE></VALUE>
// and pads an empty ''.
if($_xh[$parser]['st'][strlen($_xh[$parser]['st'])-1]
== '(')
{
$_xh[$parser]['st'].= '""';
}
// G. Giunta 2004/06/17 save some chars
in the reconstruction string...
if ($_xh[$parser]['vt'] != 'string')
$_xh[$parser]['st'].=", '" .
$_xh[$parser]['vt'] . "')";
else
$_xh[$parser]['st'].=")";
if ($_xh[$parser]['cm']) { $_xh[$parser]['st'].=','; }
Anonymous
Logged In: YES
user_id=114789
Partly implemented in CVS.
For changing the XML text created for xmlrpc values it is
advisable to wait for the next version (bigger bump in the
version number)