Subj : Re: mozilla XMLDocument in SpiderMonkey To : netscape.public.mozilla.jseng From : franck Date : Fri Sep 02 2005 04:37 pm troelskn wrote: > Thanks - Do I have to get some special version of SpiderMonkey or > something ? My compiler complains ; > error C2065: 'JSOPTION_XML' : undeclared identifier JSOPTION_XML is an option of the spidermonkey engine. example: rt = JS_NewRuntime(64L * 1024L * 1024L); cx = JS_NewContext(rt, 8192); ... JS_SetOptions(cx, JSOPTION_XML | ... ); JS_CompileFile(... ... > > Apart from that - I suppose E4X is different from Transformiix ? Does > it have features like XPath and XSLTransformation ? > E4X has a XPath equivalent: var doc = ; Print( doc.b.(@c == 2).@d ); // this will output yyy but no XSLT. Franck. .