Displaying raw XML string

Displaying raw XML string

jchannonjchannon Posts: 26Questions: 0Answers: 0
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

  • jchannonjchannon Posts: 26Questions: 0Answers: 0
    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
  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    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
  • jchannonjchannon Posts: 26Questions: 0Answers: 0
    Thanks that did it
This discussion has been closed.