timyates/groovy-common-extensions — pull request #7 by danveloper (2013-07-26 19:56:55+00:00)
Title: a more sensible approach to map coercion from a nodechild

I think this is a more sensible approach to the NodeChild -> Map translation.

Before, we were taking an XML structure with nested elements and embedding them within a specified 'child' tag, so XML that looked like:

```xml

```

Mapped out to:

```groovy
assert map == [dan: _children: [ [key: [value: "val" ] ], [key: [value: "val2" ] ] ] ]
```

This change proposes to change this to:

```groovy
assert map == [dan: [ key: [ [value: "val"], [value: "val2"] ] ] ]
```

This change also makes conversion to JSON be an accurate representation of the source XML structure.

Thoughts?