Subj : Re: Spidermonkey DOM integration. To : netscape.public.mozilla.jseng From : bvignola@hotmail.com (Bruno Vignola) Date : Wed Jan 07 2004 06:58 am aadamov wrote in message news:... > 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. Hi all, I have almost the same problem, i.e. to access a parsed XML document from JavaScript but using Rhino instead of sm; I tried a solution relying on LiveConnect, building dynamically the XML nodes as Scriptable Objects, but I am not able to access the tree using the W3C DOM interface ... I think it is not the right way, does anyone have a hint? thank you all very much, Bruno .