hi all,
i wanted to return a webpage as application/xml document.
below is my code. the returned value appears like a
string in browser. However when i view the source, it is in xml.
java code
returnResult2() simply return a string. and the string is below:
this is what appear in the webpage.
this is what appears in the source code.
can someone advice me? i want to return the xml like a xml document (with indentation). instead of just a one liner string.