The first parameter, parser, is a reference to the XML parser calling the handler.
The function named by startElementHandler must accept three parameters: startElementHandler (int parser, string name, array attribs)