Correct parsing multi-properties with attributes
Correct parsing multi-properties with attributes

When parsing GML then conversion of properties containing XML attributes
to objects with a _content_ property must occur before the handling of
multiple attributes (conversion/adding to an array), as otherwise the
_content_ property and attributes are set on the array and not on the
array element.

Prior to this change, only multiple properties without attributes could
be correctly parsed.

Example problemeatic GML section:
<Link xlink:href="http://example.com/a"/>
<Link xlink:href="http://example.com/b"/>

Resulting property as JSON extract after this change:
{
  "Link": [
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/a",
    },
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/b"
    }
  ]
}

Prior to this change, the _content_ property and the properties for the
XML attributes would be set on the resulting JS Array object, with
previous entries being represented as nested arrays.

stweil/openlayers,ahocevar/openlayers,oterral/ol3,ahocevar/openlayers,openlayers/openlayers,bjornharrtell/ol3,oterral/ol3,oterral/ol3,stweil/openlayers,stweil/openlayers,openlayers/openlayers,ahocevar/openlayers,bjornharrtell/ol3,openlayers/openlayers,bjornharrtell/ol3