From: LARRODE X. (DR&T) <xav...@sn...> - 2004-09-29 12:17:05
|
it works ;) Thanks. a last thing, Is there a lot of difference beetween 1.0 to 2.8, about performance i mean ? And sorry for my english... Xavier Le mer 29/09/2004 =E0 11:00, Christophe de VIENNE a =E9crit : > LARRODE Xavier (DR&T) wrote: >=20 > >Hello > >Is it possible with a Sax pArser to know the current line of the = element > >wich is parsed (on a start element for example) > > =20 > > >=20 > Not directly through libxml++ API, though it can be added very easily = > (and it's the right time to do it). > You can use the libxml api for that : >=20 > for example, in you start element callback you can write : > =20 > int line =3D getLineNumber ( context_ ); >=20 > You will have to include libxml/SAX.h >=20 > Note that this is a SAX1 Api call. We'll probably switch our=20 > implementation to SAX2 one day or another. By then, we'll add a=20 > getLineNumber member function on SaxParser, so you won't have to = worry=20 > about it. >=20 > Regards, >=20 > Christophe >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on = ITManagersJournal > Use IT products in your business? Tell us what you think of them. = Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find = out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Libxmlplusplus-general mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general |