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