Re: [libxml++] progress bar



LARRODE Xavier (DR&T) a écrit :

Hello, i would like to add a progress bar in my parser (i 'm using a SAX
parser), and my question is ... if we can get the (relative) position of
the stream in octect or in percentage of the file?

Hi again,

I just though of a pure libxml++ solution which would be to use parse_chunck and then calculate the progression before giving each chunck of data to the parser. cf http://libxmlplusplus.sourceforge.net/reference/2.6/html/classxmlpp_1_1SaxParser.html#a5 and http://libxmlplusplus.sourceforge.net/reference/2.6/html/classxmlpp_1_1SaxParser.html#a6.

Christophe




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