≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Displaying raw XML string
Displaying raw XML string
jchannon
Posts: 26
Questions: 0
Answers: 0
September 2011
edited September 2011
in
General
I am using DataTables succesfully via AJAX and JSON.
In one of my requests I return raw XML in JSON object however it doesn't display properly in the browser.
How can I make this happen?
Replies
jchannon
Posts: 26
Questions: 0
Answers: 0
September 2011
What I mean is that the values in the nodes are displayed in the table but I would like to see nodes as well i.e/the raw XML string
allan
Posts: 65,841
Questions: 1
Answers: 10,953
Site admin
September 2011
DataTables inserts the returned string from the server using .innerHTML. So what you could do is simply HTML entity encode the response that the server-side (i.e. "<" would become "<" etc) and that should do the job!
Allan
jchannon
Posts: 26
Questions: 0
Answers: 0
September 2011
Thanks that did it
This discussion has been closed.
Replies
Allan