I search on MDC but i don't find how to use XML in spidermonkey.
I explain, I search to parse an file xml
Example
<view width="200" height="200" onopen="view_onopen()">
<script language="jscript"><!--
function view_onopen()
{
foo( "bar()", 1000 );
}
function bar()
{
x = 2 + 2;
}
--></script>
<div background="#FFFFFF" width="200" height="200"/>
</view>
If you know the method please?
Regards
Seb
What you may be looking for is E4X (ECMAScript for XML), which is about
embedding XML *within* JS, (but not the other way around).
See here: http://en.wikipedia.org/wiki/E4X
The relevant configuration option in spidermonkey is JS_HAS_XML_SUPPORT,
which should be set to 1 (see src/jsconfig.h).
Hope that helps.
Cheers,
-Al-