After receiving XML data through an Ajax.Request
in the Ajax.Response.responseXML
, I have encountered a situation where my XML includes XHTML tags that I would like to add to my document.
However, I am facing difficulties when trying to append nodes from the responseXML
into the current document. This issue arises because these are considered XML nodes rather than DOM nodes.
Even wrapping the responseXML
in $()
doesn't provide an extended version of the nodes, and there is no clarification in the documentation regarding this matter.
I am curious to know if Prototype offers any specific methods to handle the responseXML
. If not, I would appreciate insights on a cross-browser approach to parse the response and utilize it effectively.