Hello,
I have a patch for Pike 7.2 XMLRPC. The spec at http://www.xml-rpc.org/ says the <value> element can contain <string>, <array> and so on but can also contain a PCDATA by itself ("If no type is indicated, the type is string."). This wasn't set in XMLRPC.pmod and this is used by some client like XML-RPC Apache project one.
Here is the patch:
on Feb 23 16:38:40 2004 @@ -137,7 +137,7 @@ <!ELEMENT params (param*)> <!ELEMENT param (value)>
- <!ELEMENT value (boolean|i4|int|double|string|base64| + <!ELEMENT value (#PCDATA|boolean|i4|int|double|string|base64| array|struct|dateTime.iso8601)>
<!ELEMENT boolean (#PCDATA)> @@ -231,6 +231,8 @@ // seems to assume localtime). return Calendar.parse("%dT%h:%m:%s", data*"") || magic_zero; + // the spec says that the default is string inside value + default: return data*""; } error("Unknown element %O.\n", name); case "error":
/ David