I got a XML like below format. No doubt it is returning XML:
I am not sure my servlet code
or any other need to use.
Joined: Mar 22, 2005
My question wasn't about what happens when you go to that URL in a browser, it was about what happens with the response you're getting programmatically. Where are you printing that - from your answer I assumed to a web page; is that not correct? If it is, have you looked at the source code of that web page to see whether it contains XML markup?
I think the problem is that the OP is using the browser display to view the results, and of course, that's nonsense because the browser will interpret the output as HTML, not XML. What the browser shows is irrelevant in this case.