Problem with Expat XML parser

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by DemonHell.

I was pratting about with the Expat DLL the other day, but ran into a problem when it came to writing my own callbacks/element handlers..

According to the Expat docs you just tell XML the address of the procedure (just like setting up a window callback).

But the big problem is my element handler crashing the program.
I think I`ve narrowed it down to the way PB gets arguements for procedures
(just by the way my prog doesn`t crash if my procedure doesn`t take any arguements)

The handler should start of with this (in C)
typedef void
(*XML_StartElementHandler)(void *userData,
const XML_Char *name,
const XML_Char **atts);

Any ideas? or have I just missed the blooming obvious?