expat xml parser - how to use start and end element handlers?

I was reading the XML expat tutorial but got really confused regarding some handlers. I would appreciate any help :)in this tutorial : http://www.xml.com/pub/a/1999/09/expat/index.htmlwhat is the role of these functions ?\[code\]start(void *data, const char *el, const char **attr)end(void *data, const char *el) \[/code\]what should I do with the data? why are they only using "depth" in the example?Im working on my own parser that is using expat - my parser has xml elements and children array (and attribute array as well) . so how should I use these functions ?? what should they do?thanks!!
 
Back
Top