Honestly, I don't find much use in fetching items as DOM. You can
just as easily fetch text and assign it to innerHTML (as long as the
text is trusted not to be malicious!) of a parent element.
However, you can still use getElementsByTagName on a DOM request. I
just executed the following in orkut:
function response(data) {
alert(data.data.getElementsByTagName("menu")
[0].getAttribute("title"));
};
var url = "
http://doc.examples.googlepages.com/breakfast-data.xml";
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.DOM;
gadgets.io.makeRequest(url, response, params);
Which alerted "Breakfast Menu".
Hope this helps,
~Arne