2 * SAX.h : Default SAX handler interfaces.
4 * See Copyright for the status of this software.
6 * Daniel Veillard <daniel@veillard.com>
15 #include <libxml/parser.h>
16 #include <libxml/xlink.h>
21 const xmlChar * getPublicId (void *ctx);
22 const xmlChar * getSystemId (void *ctx);
23 void setDocumentLocator (void *ctx,
24 xmlSAXLocatorPtr loc);
26 int getLineNumber (void *ctx);
27 int getColumnNumber (void *ctx);
29 int isStandalone (void *ctx);
30 int hasInternalSubset (void *ctx);
31 int hasExternalSubset (void *ctx);
33 void internalSubset (void *ctx,
35 const xmlChar *ExternalID,
36 const xmlChar *SystemID);
37 void externalSubset (void *ctx,
39 const xmlChar *ExternalID,
40 const xmlChar *SystemID);
41 xmlEntityPtr getEntity (void *ctx,
43 xmlEntityPtr getParameterEntity (void *ctx,
45 xmlParserInputPtr resolveEntity (void *ctx,
46 const xmlChar *publicId,
47 const xmlChar *systemId);
49 void entityDecl (void *ctx,
52 const xmlChar *publicId,
53 const xmlChar *systemId,
55 void attributeDecl (void *ctx,
57 const xmlChar *fullname,
60 const xmlChar *defaultValue,
61 xmlEnumerationPtr tree);
62 void elementDecl (void *ctx,
65 xmlElementContentPtr content);
66 void notationDecl (void *ctx,
68 const xmlChar *publicId,
69 const xmlChar *systemId);
70 void unparsedEntityDecl (void *ctx,
72 const xmlChar *publicId,
73 const xmlChar *systemId,
74 const xmlChar *notationName);
76 void startDocument (void *ctx);
77 void endDocument (void *ctx);
78 void attribute (void *ctx,
79 const xmlChar *fullname,
80 const xmlChar *value);
81 void startElement (void *ctx,
82 const xmlChar *fullname,
83 const xmlChar **atts);
84 void endElement (void *ctx,
86 void reference (void *ctx,
88 void characters (void *ctx,
91 void ignorableWhitespace (void *ctx,
94 void processingInstruction (void *ctx,
95 const xmlChar *target,
97 void globalNamespace (void *ctx,
99 const xmlChar *prefix);
100 void setNamespace (void *ctx,
101 const xmlChar *name);
102 xmlNsPtr getNamespace (void *ctx);
103 int checkNamespace (void *ctx,
105 void namespaceDecl (void *ctx,
107 const xmlChar *prefix);
108 void comment (void *ctx,
109 const xmlChar *value);
110 void cdataBlock (void *ctx,
111 const xmlChar *value,
114 void initxmlDefaultSAXHandler (xmlSAXHandler *hdlr,
116 #ifdef LIBXML_HTML_ENABLED
117 void inithtmlDefaultSAXHandler (xmlSAXHandler *hdlr);
119 #ifdef LIBXML_DOCB_ENABLED
120 void initdocbDefaultSAXHandler (xmlSAXHandler *hdlr);
122 void xmlDefaultSAXHandlerInit (void);
123 void htmlDefaultSAXHandlerInit (void);
124 void docbDefaultSAXHandlerInit (void);
128 #endif /* __XML_SAX_H__ */