On Jul 15, 2006, at 1:28 PM, Andrew wrote:

> Hi Bob,
> you are correct. What I was after was:
>
>       xml = dojo.dom.createDocumentFromText(data);
>       divList = xml.getElementsByTagName("div");
>       dojo.byId('output').innerHTML =
> dojo.dom.innerXML(divList.item(2));
>
> Just wondered whether there was a nicer, more intuitive, way of doing
> things in mochikit?

var my_unattached_DOM_node = DIV();
my_unattached_DOM_node.innerHTML = data;
divList = getElementsByTagAndClassName('div', null,  
my_unattached_DOM_node);
...

then, my_unattached_DOM_node should have the structure of the  
arbitrary XML you're looking for.

Zac


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to