mozilla xpcom and spidermonkey
I wanted to execute a java script out of web browser context which involves the usage of DOM object belonging to a html page.I am presently trying to do this using spidermonkey and xpcom. But as per my understanding till this point, there are xpcom components like nsDOMParser, which can convert the xml string to DOM object. Can any body suggest me an xpcom solution or any other solution which can build a DOM object for a html page with out using browser.
Thanks in advance