# Sablotron Guide and Reference

SAXHandler | Types

#### Summary

This type is used to provide the Sablotron engine with a callback structure for a SAX handler.

#### Syntax

           typedef SAX_RETURN
           SAXHandlerStartDocument(void* userData, SablotHandle processor_);

           typedef SAX_RETURN
           SAXHandlerStartElement(void* userData, SablotHandle processor_,
               const char* name, const char** atts);

           typedef SAX_RETURN
           SAXHandlerEndElement(void* userData, SablotHandle processor_,
               const char* name);

           typedef SAX_RETURN
           SAXHandlerStartNamespace(void* userData, SablotHandle processor_,
               const char* prefix, const char* uri);

           typedef SAX_RETURN
           SAXHandlerEndNamespace(void* userData, SablotHandle processor_,
               const char* prefix);

           typedef SAX_RETURN
           SAXHandlerComment(void* userData, SablotHandle processor_,
               const char* contents);

           typedef SAX_RETURN
           SAXHandlerPI(void* userData, SablotHandle processor_,
               const char* target, const char* contents);

           typedef SAX_RETURN
           SAXHandlerCharacters(void* userData, SablotHandle processor_,
               const char* contents, int length);

           typedef SAX_RETURN
           SAXHandlerEndDocument(void* userData, SablotHandle processor_);

           typedef struct
           {
               SAXHandlerStartDocument     *startDocument;
               SAXHandlerStartElement      *startElement;
               SAXHandlerEndElement        *endElement;
               SAXHandlerStartNamespace    *startNamespace;
               SAXHandlerEndNamespace      *endNamespace;
               SAXHandlerComment           *comment;
               SAXHandlerPI                *processingInstruction;
               SAXHandlerCharacters        *characters;
               SAXHandlerEndDocument       *endDocument;
           } SAXHandler;

#### Notes

This is not a real SAX interface; think about it as about a SAX-like interface. See the shandler.h file for more comments.

#### See Also

Groups | [ Types ]

© 2002-2003 Ginger Alliance
revision 03-06-30
This page was generated by APIDOC