Have a look at https://github.com/isaacs/sax-js
On Friday, March 2, 2012 3:46:35 AM UTC-7, Felix Wan wrote: > > Hi Gurus, > > I'm trying to convert some related large XML files (~30MB) to JSON format. > I've tried some out of box solutions such as xml2js, xml2json. All of them > consumes a lot of memory (200~300MB) ,so I'm wondering if there are modules > that are less memory hungry. > After the JSON string is constructed, it takes about 700ms to JSON.parse > the content which blocks the event loop. So is there any streaming JSON > parser can help here? > Thanks. > > -- > >: ~ > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en