[xml] Progress control when using SAX



Hello,

I'm using the SAX interface to parse big XML files (around 100 Mb.). I switched from DOM to SAX because of the size of files, but now i don't know how to control the progress of the parsing operation (to show a progress bar to the user). I know that is possible to get the line of the file where the parsing is in a given moment, but this doesn't seem the best way to do this (XML file could be only one line and 100 Mb). Apart of this you sholud know a priori the number of lines of the file. I guess that i'm not the first one to have this problem but i haven't found any documentation or messages in the mailing list about it.
   Any help would be appreciated.

Thanks in advance

J.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]