DataTables expects JSON data - however, using dataSrc as a function in 1.10 you could get the xml data and transform it into Javascript arrays and objects: http://next.datatables.net/reference/option/ajax.dataSrc
Is there any api in java or jquery that transform the xml returned to this format :
[code]
{
"demo": [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421",
"2011/04/25",
"$3,120"
],
[
"Garrett Winters",
"Director",
"Edinburgh",
"8422",
"2011/07/25",
"$5,300"
],
[
"Donna Snider",
"System Architect",
"New York",
"4226",
"2011/01/25",
"$3,120"
]
]
}
[/code]
Replies
Allan
Is there any api in java or jquery that transform the xml returned to this format :
[code]
{
"demo": [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421",
"2011/04/25",
"$3,120"
],
[
"Garrett Winters",
"Director",
"Edinburgh",
"8422",
"2011/07/25",
"$5,300"
],
[
"Donna Snider",
"System Architect",
"New York",
"4226",
"2011/01/25",
"$3,120"
]
]
}
[/code]
Thanks
http://davidwalsh.name/convert-xml-json
http://stackoverflow.com/questions/1773550/xml-json-conversion-in-javascript
https://code.google.com/p/x2js/
Allan