Subj : Re: Spidermonkey DOM integration. To : aadamov From : Brendan Eich Date : Sun Jan 04 2004 10:38 am aadamov wrote: > I have an application in which I would like to do embed spidermonkey > JS engine. However, application has data stored in DOM object that > should be available to javascript engine. This is not a browser. > I am looking for wrapper classes that would make DOM data available to > SpiderMonkey. I expect the DOM schema to change and don't want it to > be hardcoded in the wraper classes. I already started prototyping a > solution, but it feels like reinventing the bycicle. Can anybody point > me in the right direction or provide an example. > Thank you, > AA. If you mean the w3c DOM, then you might use Mozilla's DOM .idl files, which contain XPIDL (http://www.mozilla.org/scriptable/). You could go further, and use XPCOM, XPConnect, and SpiderMonkey to glue your DOM objects and JS together. But if you say the DOM schema will change, do you mean the DOM APIs expressed in IDL? Or just particular document instances? /be .