Problem in displaying xml data in text area
my code is
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
String result = SimulatorProcesser.putMessage("",req.getParameter("in"));
out.println("<textarea>"+result+" </textarea>");
but it is giving out put as
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--
Only one top level element is allowed in an XML document. Error processing resource 'http://localhost:9080/TESTAPI/TestServ...
<textarea><?xml version="1.0"?><Exception><ErrorCode>9999</ErrorCode><ErrorMessage>null&...
Kinldy help me ...thanks in advance

