Hi,

 

I am just wondering if there is anything like this in MochiKit.

 

function loadXML(data) {

            if (DOMParser) return (new DOMParser()).parseFromString(data, 'text/xml');

            if (ActiveXObject) return (new ActiveXObject("microsoft.XMLDOM")).loadXML(data);

            return null;

}

 

I need to convert an arbitrary string to a Dom-Object.

 

Thanks,

Fariborz.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to