Userdata: From JSON to XML

Ich would like to change a data transfer from JSON to XML. At the moment for example JSON datas look like this:

{
    "rows": [
        {
            "id": 7021,
            "data": [
                "Row 1",
                "Row 2",
                "Row 3",
                "Row 4"
            ],
            "userdata": {
                "list": [
                    {
                        "id": 1,
                        "type": 0
                    },
                    {
                        "id": 2,
                        "type": 1
                    }
                ]
            }
        },
       {...more datas...}
    ]
}

My special problem is the userdata. I know to handle userdatas in XML [1] but every userdata entry (key value pair) could only be unique. But in my list above there is more than one field with ‘id’ and ‘type’ so the simplest way for me is to have ‘userdata block’ like this:

<userdata name="list">
<row>
  <cell id="id">1</cell>	
  <cell id="type">0</cell>
</row>
<row>
  <cell id="id">2</cell>	
  <cell id="type">1</cell>
</row>
</userdata>

Is somethink like this possible?

Regards, Carsten

[1] dhtmlx.com/docs/products/doc … index.html