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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---