[Expat-discuss] Simple question

Stefan A Letz stefan.letz at de.ibm.com
Tue Jan 25 10:58:09 CET 2005


Hello Sebastian,
 
as stated in the documentation of this function, after 
XML_ParserReset() has been called the parser is ready to start 
parsing a new document. So, your user data and your handlers are still 
set.
 
Stefan Letz.


> "Sebastian Bello" <sebastian at inswitch.us> 
> Sent by: expat-discuss-bounces at libexpat.org
> 
> 01/24/2005 02:54 PM
> 
> To
> 
> <expat-discuss at libexpat.org>
> 
> cc
> 
> Subject
> 
> [Expat-discuss] Simple question
> 
> Hi list,
> 
> I'm writing a simple application that parses XML messages. As part 
> of the initialization I invoke
>     XML_ParserCreate
>     XML_SetUserData
>     XML_SetStartElementHandler
>     XML_SetEndElementHandler
>     XML_SetCharacterDataHandler
> 
> I use XML_Parse to do the parsing.
> The question is if I have to do all this initialization before each 
> new message parsing, or if it is enough calling XML_ParserReset 
> after each XML parsed. Am I missing something?
> Thanks,
>     Sebastian-
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss


More information about the Expat-discuss mailing list