[jQuery] Convert XMLDocument to text

[jQuery] Convert XMLDocument to text


I have received an XMLDocument object through an Ajax call and has
subsequently changed some of the nodes in the object. I now want to
convert it to a plain text string so I can pass it on as a parameter.
Is there any way in jQuery to do this?