From: Christophe de V. <cde...@al...> - 2004-05-25 07:57:09
|
Hi, LARRODE Xavier (DR&T) a =E9crit : >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? > =20 > There is not direct solution in the libxml++ API, but libxml2 provides=20 getColumnNumber:=20 http://www.xmlsoft.org/html/libxml-SAX.html#getColumnNumber which should=20 do what you want. Note that this is a SAX1 function, since the stable versions of libxml++=20 use it. The future one should use SAX2. Regards, Christophe |