Sample output data is below, it looks something like JSON, but it's not formatted exactly like JSON. So I am wondering, how can I get this data looking like XML, preferably with php?
[{
action: 'getallregions',
reply: [{
regionid: '1',
name: 'Blue',
description: 'Research Route',
color: '508CEB',
active: 'true',
parentRegionId: '0',
parentRegion: ''
}, {
regionid: '4',
name: 'Green',
description: 'Vet School Route',
color: '73BE69',
active: 'true',
parentRegionId: '0',
parentRegion: ''
}, {
regionid: '10',
name: 'Purple',
description: 'Loop route',
color: '5300B5',
active: 'true',
parentRegionId: '0',
parentRegion: ''
}]
}]
Here is the data on Pastie.org http://pastie.org/1045154