Bear,
Thanks for your response. I am sorry to say that i am lacking understanding on content Type. I googled to find out, and majority of the cases it is in
servlet, the content type is set. But this program is not actually hitting any server, but considers the local machine as server. So, the content type of response xml has to be set in javascript, which i am not sure how to do it. If you can assist me with this, it will be really helpful.