Currently, I am retrieving a string from PHP using AJAX. This string contains data from a database formatted in XML tags.
Upon receiving this string in JavaScript, my objective is to display it as an XML document on the web browser to verify its proper formatting.
Does anyone have recommendations on how to convert a string into valid XML and present it on the browser?