As the question says, it just escaped my memory how to display xml in javascript, I want to display some source xml within an div on a page, that sits next to the processed
This is the easiest way I found to display XML as Text on the same page for copy and paste:
var xml = document.getElementById('svg_element').innerHTML; document.getElementById('svg_pre').innerText = xml;