private XElement CreateMultiCallResultValues(IEnumerable <XmlRpcMethodResult> results) { var paramElement = new XElement(XmlRpcTags.Param); var paramsElement = new XElement(XmlRpcTags.Params, paramElement); var values = results.Select(x => new ArrayValue(new[] { x.Values.First() })).AsEnumerable(); var arrayValue = new ArrayValue(values); var writer = Writers.GetWriter(arrayValue.GetType()); writer.WriteTo(paramElement, arrayValue); var methodResponseElement = new XElement(XmlRpcTags.MethodResponse, paramsElement); return(methodResponseElement); }