Create javascript document from xmldocument
===

I've been using $.ajax() to get some data from a server but due to incompatibility with previous version of my system (samsung smart tv) I have had to implement XMLHttpRequest also. My problem is that with jQuery, the responseXML returns a [object Document] while XMLHttpRequest's responseXML returns a [object XMLDocument]. Since I already had everything implemented using Documents, is there a way to parse a XMLDocument object or a string object into a Document?

Any help is appreciated, I'm stuck here and don't want to rewrite everything for XMLDocument.

Thanks!