Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can Spidermonkey use DOMParser?

165 views
Skip to first unread message

Rajesh N

unread,
Aug 29, 2006, 4:56:31 AM8/29/06
to dev-tech-...@lists.mozilla.org
Hi,

Can the Spidermonkey Javascript Engine (used as embedded in application) use
the DOMParser extension of Mozilla
(http://developer.mozilla.org/en/docs/XML_Extras) to parse XML content
present as Javascript strings? If yes, is there any guideline/documentation
on how to achieve this?

Thanks
Rajesh

This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

chr.alme

unread,
Aug 29, 2006, 7:16:59 AM8/29/06
to
Hi,

don't know about the DOMParser thing, but did you already take a look
at the built-in E4X objects ? (I think they require SpiderMonkey
version 1.6+)

Cheers, Christoph

Martin Honnen

unread,
Aug 29, 2006, 7:59:09 AM8/29/06
to
Rajesh N wrote:


> Can the Spidermonkey Javascript Engine (used as embedded in application) use
> the DOMParser extension of Mozilla
> (http://developer.mozilla.org/en/docs/XML_Extras) to parse XML content
> present as Javascript strings? If yes, is there any guideline/documentation
> on how to achieve this?

In general no, as DOMParser is not part of the script engine at all but
part of the Mozilla browser which makes it available to script in the
browser using XPConnect.


--

Martin Honnen
http://JavaScript.FAQTs.com/

Rajesh N

unread,
Aug 29, 2006, 11:09:06 AM8/29/06
to chr.alme, dev-tech-...@lists.mozilla.org
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Thread-index: AcbLXR1DdeyNqDoTSbWBJb2JJ0QTRgAHBrjw

Thanks Christoph. Yes, I had a brief read of the E4X documentation
(http://developer.mozilla.org/en/docs/E4X), but still need to do a deep look
at it.

But I could not find where I can get the SpiderMonkey version 1.6+

Could you please guide me to some links?

Thanks
Rajesh

Hi,

Cheers, Christoph

_______________________________________________
dev-tech-js-engine mailing list
dev-tech-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine


chr.alme

unread,
Aug 31, 2006, 1:33:55 PM8/31/06
to

Hi,

I suggest you checkout the SpiderMonkey branch from the Mozilla CVS and
build it yourself. I would recommend to use a release branch, for
example FIREFOX_1_5_0_4_RELEASE.

Cheers

0 new messages