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
The problem is that you have to escape the characters that the HTML parser will interpret as markup: <, >, &, and in some cases " and '
Core JavaScript doesn't provide this for you, but many of the add-on libraries do.
For example, Prototype has: http://www.prototypejs.org/api/string/escapeHTML