I have an Xpath query which gives me an xml file as a string as follow: String str = ((String) res.getContent());
Now printing this str as "System.out.println(str)" prints an xml file on the tomcat server window with proper XML tags and in the same format in which the xml file was saved in database( i.e with proper line breaks etc). But when I print this string out on a jsp page as <% out.println(str); %> the file is printed in the browser without tags and many tag values in a single line. Can anyone tell me why is this unformatting happening? Will be grateful for any help. Arshad
