[Expat-discuss] Communicating between handlers (Giulio)
Albrecht Fritzsche
ali at mental.com
Mon Aug 20 10:58:27 CEST 2007
expat-discuss-request at libexpat.org wrote:
>
>
> Today's Topics:
>
> 1. Communicating between handlers (Giulio)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 18 Aug 2007 10:18:20 +0200
> From: "Giulio" <zeus.84 at libero.it>
> Subject: [Expat-discuss] Communicating between handlers
> To: "expat-discuss" <expat-discuss at libexpat.org>
> Message-ID: <JMYN2K$4B6DA4782304DDE48751D6F20604E0C0 at libero.it>
> Content-Type: text/plain; charset=iso-8859-1
>
> Good morning, I need an example of Communicating between handlers, someone can send and help me? i must create a data structure? Thanks all for help
All handlers do get the struct XML_ParserStruct passed to. With the
function
void XMLCALL XML_SetUserData(XML_Parser p, void *userData);
you can add your own struct for communication to it. Inside the handlers
you do retrieve it then via - surprise, surprise -
void * XMLCALL XML_GetUserData(XML_Parser p);
Hope that helps
Ali
More information about the Expat-discuss
mailing list