When I will alert an XMLDocument, it will definitely display [object] or [object – XMLDocument]. Suppose we have recieved the xml data from an XMLHttpRequest’s response.
How will we convert this XML Document to string type variable so that we can display with an alert dialogue ? Please send pure JS code, I cannot use framework viz. JQuery etc.
try following,
in IE,
other browsers,