Re: [libxml++] current line



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 à 11:00, Christophe de VIENNE a écrit :
> LARRODE Xavier (DR&T) wrote:
> 
> >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)
> >  
> >
> 
> 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 :
> 
> for example, in you start element callback you can write :
>   
>     int line = getLineNumber ( context_ );
> 
> You will have to include libxml/SAX.h
> 
> Note that this is a SAX1 Api call. We'll probably switch our 
> implementation to SAX2 one day or another. By then, we'll add a 
> getLineNumber member function on SaxParser, so you won't have to worry 
> about it.
> 
> Regards,
> 
> Christophe
> 
> 
> 
> -------------------------------------------------------
> 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
> Libxmlplusplus-general lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general




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