<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">actually, spidermonkey has an xml parser, its very poorly documented:<div><br></div><div><meta charset="utf-8"><a href="http://wiki.freeswitch.org/wiki/Javascript_XML">http://wiki.freeswitch.org/wiki/Javascript_XML</a></div><div><a href="http://wiki.freeswitch.org/wiki/Javascript_XML"></a><br><div><div>On Apr 22, 2010, at 11:55 PM, Jonas Gauffin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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("&lt;tag&gt;foo&lt;/tag&gt;");<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 ("show", "channels as xml");<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; "Syntax Error" 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>
_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>