If you want your browser to display yours XMLas XMLit should be in it own document, for example, iframeor frame. DIVwon't do the job!
In addition, in the header of the HTTPrequest serving iframeyou should send Content-Type: text/xml, so the browser can understand what the content is XML.
But if you really need to see it in the DIV, you will need to create a rendering function XML XML2HTML. You can use the tag HTML PREif your line is XMLalready formatted (line breaks and tabs). In this case, you will have to replace <with >in the line XML.
: The browser XML HTML . , .