Click to See Complete Forum and Search --> : Huge XMLParsing on client-side with JS
ivobenedito
03-09-2006, 11:56 AM
Can anyone tell me if there is any way to parse huge XML File's (10.000 lines, or more) in client side with Javascript and AJAX without the browser crashing ?? I already tried with xml for <script> but the browser simply DIES(Crashes) ... ;( Does anyone have an idea of a solution for it ?? I already thought on parsing that huge XML File on server side and then generate a smaller one with the only things that interest to me and send to the client side, but it was important to make the APP on client side with JS only.
Thks in advance ... []]s
rodedwards
03-09-2006, 01:07 PM
Having a 10,000 item list on a page isn't really great for usability. You have to convince the client here to allow you some server side dlexibility, IMHO.
ivobenedito
03-09-2006, 01:11 PM
I'm not talking about 10000 item list, its a 10000 lines XML File. The problm is that to parse that amount of lines, the client side parsers just crash or take too much time, and that in a web application is not good.
schizo
03-10-2006, 08:56 PM
I've never done it, but I hear SAX is better for parsing larger files than DOM... SAX can parse individual lines, while DOM loads the entire document into memory.