lstrojny/fxmlrpc — pull request #4 by magnusnordlander (2013-01-15 14:33:16+00:00)
Title: Bug fix for multiple params in XmlWriterSerializer

Currently, XmlWriterSerializer behaves in an odd way when using multiple parameters, which causes trouble with an XML-RPC service we're using. It also differs from how NativeSerializer works.

When serializing multiple parameters, e.g. ```$serializer->serialize('method', array('str1', 'str2'))```, XmlWriterSerializer only produces one param element, as follows:

```xml

method

str1

str2

```

This differs from NativeSerializer, and from how I interpret the XML-RPC specification which states that ```"The sub-item can contain any number of s, each of which has a "```.

NativeSerializer instead produces two param elements, as follows:

```xml

method

str1

str2

```

In this PR I have added a test case for multiple parameters, and have changed the XmlWriterSerializer to produce the same output as NativeSerializer.