I get back the responseXml as a javascript object XMLdocument. How do i parse it to just return the body? here is my code snippet:
goog.net.XhrIo.send("/blogs/create?authenticity_token="+
goog.string.urlEncode(authtoken), function(e) {
var xhr = /** @type {goog.net.XhrIo} */ (e.target);
var responseXml = xhr.getResponseXml();
var parent = goog.dom.getElement('response');
goog.dom.setTextContent(parent, responseXml.body); /** This returns
undefined rather than the body itself! */
}, 'POST', "&body="+goog.string.urlEncode(someHTMLContent), {
'Accept' : 'text/xml'
});