[Expat-discuss] XML_SetXmlDeclHandler

oms101@freeuk.com oms101@freeuk.com
Fri, 18 May 2001 17:23:20 +0100 (BST)


I have been playing with expat and am very pleased with what I see but I cant
get the XML_SetXmlDeclHandler to work properly

I typically get

/tmp/ccYTg2am.o: In function `main':
/tmp/ccYTg2am.o(.text+0x288f): undefined reference to `XML_SetXmlDeclHandler'
collect2: ld returned 1 exit status


my code looks like ouline.c with a few handlers set


<code>

<snip/>

void DeclHandler(void *userData, const XML_Char  *version, const XML_Char 
*data ,int standalone)
{        
        printf("{%s}", version);
        printf("[%s]", data);
}


<snip/>


XML_SetXmlDeclHandler(p,DeclHandler);   

<snip/>

</code>


I am trying to grab the information 

<?xml version="1.0"?>

for a simple XML filter under linux for web server XML session management so
ideally all XML passed in is passed out identically unless the user whishes
otherwise.

Chears Owen


Date: 18-May-01 Time: 15:10:29