stealthly/xml-avro — pull request #8 by lucamilanesio (2014-11-06 16:54:48+00:00)
Title: Encode group particles as separate records when maxOccurs > 1

When group particles have multiple occurrences, they need to be
considered as separate blocks in order to keep:
- ordering
- structure

Previously all the group particles occurrences were compressed into
a single set of fields together with their parent elements, dropping
all elements but the last one. The effect was quite devastating as
all the previous data except the last group was lost and moreover the
group structure logic was forgotten.

Example:
(sequence of s and choice of x or y)

```

s1
x2
3
x4
5

```

Was (wrongly) translated into:
```
{
“s” : “s1”,
“x” : "x4",
“y” : 5
}
```

After this change it is (correctly) translated into:
```
[ { “s” : “s1” },
{ “x” : “x2” },
{ “y” : 3 },
{ “x” : “x4” },
{ “y” : 5 } ]
```