hi,
i am getting some junk characters along with xml response.how can i avoid the junk characters.pl tell me
response.setContentType("application/x-java-serialized-object");
OutputStream os = response.getOutputStream();
ObjectOutputStream output = new ObjectOutputStream(os);
output.writeObject("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
"<text timestamp=\"08:45:00.000\">"+
"The deadline of <name>homework 1</name> is"+
"<emph>March 9th 2001</emph>."+
"</text>");
output.flush();
output.close();
i am getting some junk characters along with xml response.how can i avoid the junk characters.pl tell me
response.setContentType("application/x-java-serialized-object");
OutputStream os = response.getOutputStream();
ObjectOutputStream output = new ObjectOutputStream(os);
output.writeObject("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
"<text timestamp=\"08:45:00.000\">"+
"The deadline of <name>homework 1</name> is"+
"<emph>March 9th 2001</emph>."+
"</text>");
output.flush();
output.close();