Display the xml output in html

Display the xml output in html

Hi,

I am building an app, which makes a ajax request to thirdparty application, the output is in xml format.
Here i have an issue that when i use the URL directly on the browser it renders the xml output on the browser, but when i use it through $.ajax() it returned the response as #document.
I used $(reposeData).text() but this rendered an huge text on my browser without the xml tags.

I want to render the same output in xml as it work when URL is explicitly used in browser.

Any body came up with this issue, please share the solution. I am stuck in this part.

Thanks