Not possible.<div><br></div><div><a href="http://markmail.org/message/ctietfw2mucucdyq#query:spidermonkey%20domparser+page:1+mid:jjknnksvfpi4keto+state:results">http://markmail.org/message/ctietfw2mucucdyq#query:spidermonkey%20domparser+page:1+mid:jjknnksvfpi4keto+state:results</a><br>
<div><div><br></div><a href="http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/86b27b854492c22a/237e4ba109d3f69c">http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/86b27b854492c22a/237e4ba109d3f69c</a></div>
<div><a href="http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/86b27b854492c22a/237e4ba109d3f69c"></a><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 10:30 AM, Alberto Escudero <span dir="ltr">&lt;<a href="mailto:aep.lists@it46.se">aep.lists@it46.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am resending this mail, hoping that someone has managed to read a XML<br>
file from Javascript.<br>
<div><div></div><div class="h5"><br>
<br>
--<br>
Stopping junk mailers is good for the environment<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; After one year using FS i am starting to like XML so i am trying to get<br>
&gt; a Javascript script to read local XML files.<br>
&gt;<br>
&gt; I am using the XML method and getting Syntax errors from spidermonkey<br>
&gt;<br>
&gt; While something like this works:<br>
&gt; xmldata = new XML(&quot;&lt;tag&gt;foo&lt;/tag&gt;&quot;);<br>
&gt;<br>
&gt; I have not been able to read and parse XML local files, using File or<br>
&gt; FileIO<br>
&gt; methods<br>
&gt;<br>
&gt; A simple example like this returns Syntax error.<br>
&gt; var foo = apiExecute (&quot;show&quot;, &quot;channels as xml&quot;);<br>
&gt; xmldata = new XML(foo);<br>
&gt;<br>
&gt; Has anyone managed to use the XML method from spidermonkey to read a XML<br>
&gt; stored file?<br>
&gt;<br>
&gt; There are some E4X bugs around and i wonder if those are the cause of the<br>
&gt; &quot;Syntax Error&quot; feedback even reading a very basic XML file<br>
&gt; --<br>
&gt; Stopping junk mailers is good for the environment<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>