blob: a3bd1025b0e1914a2d86afa7805f2eb3b72fa69d [file] [log] [blame]
Daniel Veillard294cbca1999-12-03 13:19:09 +00001/*
Daniel Veillarde4e51311999-12-18 15:32:46 +00002 * SAX.h : Default SAX handler interfaces.
Daniel Veillard294cbca1999-12-03 13:19:09 +00003 *
4 * See Copyright for the status of this software.
5 *
6 * Daniel Veillard <Daniel.Veillard@w3.org>
7 */
8
9
Daniel Veillardb24054a1999-12-18 15:32:46 +000010#ifndef __XML_SAX_H__
11#define __XML_SAX_H__
12
Daniel Veillard294cbca1999-12-03 13:19:09 +000013#include <stdio.h>
14#include <stdlib.h>
Daniel Veillard361d8452000-04-03 19:48:13 +000015#include <libxml/parser.h>
16#include <libxml/xlink.h>
Daniel Veillard294cbca1999-12-03 13:19:09 +000017
Daniel Veillarde4e51311999-12-18 15:32:46 +000018#ifdef __cplusplus
19#define extern "C" {
20#endif
Daniel Veillard294cbca1999-12-03 13:19:09 +000021const xmlChar * getPublicId (void *ctx);
22const xmlChar * getSystemId (void *ctx);
23void setDocumentLocator (void *ctx,
24 xmlSAXLocatorPtr loc);
25
26int getLineNumber (void *ctx);
27int getColumnNumber (void *ctx);
28
29int isStandalone (void *ctx);
30int hasInternalSubset (void *ctx);
31int hasExternalSubset (void *ctx);
32
33void internalSubset (void *ctx,
34 const xmlChar *name,
35 const xmlChar *ExternalID,
36 const xmlChar *SystemID);
37xmlEntityPtr getEntity (void *ctx,
38 const xmlChar *name);
39xmlEntityPtr getParameterEntity (void *ctx,
40 const xmlChar *name);
41xmlParserInputPtr resolveEntity (void *ctx,
42 const xmlChar *publicId,
43 const xmlChar *systemId);
44
45void entityDecl (void *ctx,
46 const xmlChar *name,
47 int type,
48 const xmlChar *publicId,
49 const xmlChar *systemId,
50 xmlChar *content);
51void attributeDecl (void *ctx,
52 const xmlChar *elem,
53 const xmlChar *name,
54 int type,
55 int def,
56 const xmlChar *defaultValue,
57 xmlEnumerationPtr tree);
58void elementDecl (void *ctx,
59 const xmlChar *name,
60 int type,
61 xmlElementContentPtr content);
62void notationDecl (void *ctx,
63 const xmlChar *name,
64 const xmlChar *publicId,
65 const xmlChar *systemId);
66void unparsedEntityDecl (void *ctx,
67 const xmlChar *name,
68 const xmlChar *publicId,
69 const xmlChar *systemId,
70 const xmlChar *notationName);
71
72void startDocument (void *ctx);
73void endDocument (void *ctx);
74void attribute (void *ctx,
75 const xmlChar *fullname,
76 const xmlChar *value);
77void startElement (void *ctx,
78 const xmlChar *fullname,
79 const xmlChar **atts);
80void endElement (void *ctx,
81 const xmlChar *name);
82void reference (void *ctx,
83 const xmlChar *name);
84void characters (void *ctx,
85 const xmlChar *ch,
86 int len);
87void ignorableWhitespace (void *ctx,
88 const xmlChar *ch,
89 int len);
90void processingInstruction (void *ctx,
91 const xmlChar *target,
92 const xmlChar *data);
93void globalNamespace (void *ctx,
94 const xmlChar *href,
95 const xmlChar *prefix);
96void setNamespace (void *ctx,
97 const xmlChar *name);
98xmlNsPtr getNamespace (void *ctx);
99int checkNamespace (void *ctx,
Ramiro Estrugobfce3771999-12-15 04:32:07 +0000100 xmlChar *nameSpace);
Daniel Veillard294cbca1999-12-03 13:19:09 +0000101void namespaceDecl (void *ctx,
102 const xmlChar *href,
103 const xmlChar *prefix);
104void comment (void *ctx,
105 const xmlChar *value);
106void cdataBlock (void *ctx,
107 const xmlChar *value,
108 int len);
109
110void xmlDefaultSAXHandlerInit (void);
111void htmlDefaultSAXHandlerInit (void);
Daniel Veillarde4e51311999-12-18 15:32:46 +0000112#ifdef __cplusplus
113}
114#endif
Daniel Veillard294cbca1999-12-03 13:19:09 +0000115#endif /* __XML_SAX_H__ */