Click to See Complete Forum and Search --> : Parse XML in Javascript (pure?)


wayneh
07-27-2005, 12:42 PM
I'm looking for a way to parse XML in javascript, WITHOUT:
1) Being browser specific
2) Creating ActiveX objects

So far I have found 2 parser written purely in Javascript:
XMLP - http://www.gazingus.org/html/XML_Parser_in_JavaScript.html
and
XML for Script - http://sourceforge.net/projects/xmljs/

I've tested XMLP and it is much faster than XML for Script when parsing the document.

These both satisfy my needs, except when compared with, say MSXML, they are both VERY SLOW.

Does anyone know of another way which will not be browser or system dependent, and which does not instantiate an ActiveX object??

A1ien51
07-27-2005, 03:02 PM
Do a search for JavaScript Ajax Examples and you should be able to find ways to parse XML files. Rather easy to do.

Eric