XML Parser for JavaScript - xml2array()

xml2array() Demos...

Parse the content of this site's RSS feed -
Parse my software database's XML file -
Parse this site's sitemap file - this is kinda big - around 600 lines -

loading...

Parse Results

Test area

Try to access elements of the array using commands like...


alert(arr['rss']['channel']['title']);
alert(dump(arr['rss']['channel']['item'][0]));
new_arr = parseFile('rss.xml');
...

Comments

Yash at 15 Jun, 2007 09:34
Wow..really good one
Reply to this.
ZS at 21 Jun, 2007 05:08
In IE7: arr.rss.channel is null or not an object.

Love the script but damn, I just finished up a big project using xml2array in FireFox for testing now IE is shot.
Reply to this.
Comment


Comment




Comment Formating : HTML tags a, strong, em, b, i, code, pre, p and br allowed. Other tags will be shown as code(< will become &lt;). Urls, Line breaks will be auto-formated.