Re: Communicating between handlers (Giulio)

Albrecht Fritzsche <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
[email protected] wrote:

> 
> 
> Today's Topics:
> 
>    1. Communicating between handlers (Giulio)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 18 Aug 2007 10:18:20 +0200
> From: "Giulio" <[email protected]>
> Subject: [Expat-discuss] Communicating between handlers
> To: "expat-discuss" <[email protected]>
> Message-ID: <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.