blob: 2912f36f1e71bd8b425226c96072eae26e997c79 [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"
Daniel Veillard10a2c651999-12-12 13:03:50 +000013#include "xlink.h"
Daniel Veillard294cbca1999-12-03 13:19:09 +000014
15#ifndef __XML_SAX_H__
16#define __XML_SAX_H__
17const xmlChar * getPublicId (void *ctx);
18const xmlChar * getSystemId (void *ctx);
19void setDocumentLocator (void *ctx,
20 xmlSAXLocatorPtr loc);
21
22int getLineNumber (void *ctx);
23int getColumnNumber (void *ctx);
24
25int isStandalone (void *ctx);
26int hasInternalSubset (void *ctx);
27int hasExternalSubset (void *ctx);
28
29void internalSubset (void *ctx,
30 const xmlChar *name,
31 const xmlChar *ExternalID,
32 const xmlChar *SystemID);
33xmlEntityPtr getEntity (void *ctx,
34 const xmlChar *name);
35xmlEntityPtr getParameterEntity (void *ctx,
36 const xmlChar *name);
37xmlParserInputPtr resolveEntity (void *ctx,
38 const xmlChar *publicId,
39 const xmlChar *systemId);
40
41void entityDecl (void *ctx,
42 const xmlChar *name,
43 int type,
44 const xmlChar *publicId,
45 const xmlChar *systemId,
46 xmlChar *content);
47void attributeDecl (void *ctx,
48 const xmlChar *elem,
49 const xmlChar *name,
50 int type,
51 int def,
52 const xmlChar *defaultValue,
53 xmlEnumerationPtr tree);
54void elementDecl (void *ctx,
55 const xmlChar *name,
56 int type,
57 xmlElementContentPtr content);
58void notationDecl (void *ctx,
59 const xmlChar *name,
60 const xmlChar *publicId,
61 const xmlChar *systemId);
62void unparsedEntityDecl (void *ctx,
63 const xmlChar *name,
64 const xmlChar *publicId,
65 const xmlChar *systemId,
66 const xmlChar *notationName);
67
68void startDocument (void *ctx);
69void endDocument (void *ctx);
70void attribute (void *ctx,
71 const xmlChar *fullname,
72 const xmlChar *value);
73void startElement (void *ctx,
74 const xmlChar *fullname,
75 const xmlChar **atts);
76void endElement (void *ctx,
77 const xmlChar *name);
78void reference (void *ctx,
79 const xmlChar *name);
80void characters (void *ctx,
81 const xmlChar *ch,
82 int len);
83void ignorableWhitespace (void *ctx,
84 const xmlChar *ch,
85 int len);
86void processingInstruction (void *ctx,
87 const xmlChar *target,
88 const xmlChar *data);
89void globalNamespace (void *ctx,
90 const xmlChar *href,
91 const xmlChar *prefix);
92void setNamespace (void *ctx,
93 const xmlChar *name);
94xmlNsPtr getNamespace (void *ctx);
95int checkNamespace (void *ctx,
Ramiro Estrugobfce3771999-12-15 04:32:07 +000096 xmlChar *nameSpace);
Daniel Veillard294cbca1999-12-03 13:19:09 +000097void namespaceDecl (void *ctx,
98 const xmlChar *href,
99 const xmlChar *prefix);
100void comment (void *ctx,
101 const xmlChar *value);
102void cdataBlock (void *ctx,
103 const xmlChar *value,
104 int len);
105
106void xmlDefaultSAXHandlerInit (void);
107void htmlDefaultSAXHandlerInit (void);
108#endif /* __XML_SAX_H__ */