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"><<a href="mailto:aep.lists@it46.se">aep.lists@it46.se</a>></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>
> Hi,<br>
><br>
> After one year using FS i am starting to like XML so i am trying to get<br>
> a Javascript script to read local XML files.<br>
><br>
> I am using the XML method and getting Syntax errors from spidermonkey<br>
><br>
> While something like this works:<br>
> xmldata = new XML("<tag>foo</tag>");<br>
><br>
> I have not been able to read and parse XML local files, using File or<br>
> FileIO<br>
> methods<br>
><br>
> A simple example like this returns Syntax error.<br>
> var foo = apiExecute ("show", "channels as xml");<br>
> xmldata = new XML(foo);<br>
><br>
> Has anyone managed to use the XML method from spidermonkey to read a XML<br>
> stored file?<br>
><br>
> There are some E4X bugs around and i wonder if those are the cause of the<br>
> "Syntax Error" feedback even reading a very basic XML file<br>
> --<br>
> Stopping junk mailers is good for the environment<br>
><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>
><br>
><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>