[Freeswitch-users] Parsing XML files from Spidermonkey

Michael Jerris mike at jerris.com
Fri Apr 23 20:36:23 PDT 2010


actually, spidermonkey has an xml parser, its very poorly documented:

http://wiki.freeswitch.org/wiki/Javascript_XML

On Apr 22, 2010, at 11:55 PM, Jonas Gauffin wrote:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100423/0721d1a0/attachment.html 


More information about the FreeSWITCH-users mailing list