File: SAX.h

package info (click to toggle)
libxml 1:1.8.17-14+etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,448 kB
  • ctags: 2,065
  • sloc: ansic: 34,649; xml: 10,690; sh: 8,593; makefile: 374
file content (115 lines) | stat: -rw-r--r-- 3,059 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
 * SAX.h : Default SAX handler interfaces.
 *
 * See Copyright for the status of this software.
 *
 * Daniel Veillard <Daniel.Veillard@w3.org>
 */


#ifndef __XML_SAX_H__
#define __XML_SAX_H__

#include <stdio.h>
#include <stdlib.h>
#include "parser.h"
#include "xlink.h"

#ifdef __cplusplus
#define extern "C" {
#endif
const xmlChar *	getPublicId			(void *ctx);
const xmlChar *	getSystemId			(void *ctx);
void	setDocumentLocator			(void *ctx,
						 xmlSAXLocatorPtr loc);
    
int		getLineNumber			(void *ctx);
int		getColumnNumber			(void *ctx);

int		isStandalone			(void *ctx);
int		hasInternalSubset		(void *ctx);
int		hasExternalSubset		(void *ctx);

void		internalSubset			(void *ctx,
						 const xmlChar *name,
						 const xmlChar *ExternalID,
						 const xmlChar *SystemID);
xmlEntityPtr	getEntity			(void *ctx,
						 const xmlChar *name);
xmlEntityPtr	getParameterEntity		(void *ctx,
						 const xmlChar *name);
xmlParserInputPtr resolveEntity			(void *ctx,
						 const xmlChar *publicId,
						 const xmlChar *systemId);

void		entityDecl			(void *ctx,
						 const xmlChar *name,
						 int type,
						 const xmlChar *publicId,
						 const xmlChar *systemId,
						 xmlChar *content);
void		attributeDecl			(void *ctx,
						 const xmlChar *elem,
						 const xmlChar *name,
						 int type,
						 int def,
						 const xmlChar *defaultValue,
						 xmlEnumerationPtr tree);
void		elementDecl			(void *ctx,
						 const xmlChar *name,
						 int type,
						 xmlElementContentPtr content);
void		notationDecl			(void *ctx,
						 const xmlChar *name,
						 const xmlChar *publicId,
						 const xmlChar *systemId);
void		unparsedEntityDecl		(void *ctx,
						 const xmlChar *name,
						 const xmlChar *publicId,
						 const xmlChar *systemId,
						 const xmlChar *notationName);

void		startDocument			(void *ctx);
void		endDocument			(void *ctx);
void		attribute			(void *ctx,
						 const xmlChar *fullname,
						 const xmlChar *value);
void		startElement			(void *ctx,
						 const xmlChar *fullname,
						 const xmlChar **atts);
void		endElement			(void *ctx,
						 const xmlChar *name);
void		reference			(void *ctx,
						 const xmlChar *name);
void		characters			(void *ctx,
						 const xmlChar *ch,
						 int len);
void		ignorableWhitespace		(void *ctx,
						 const xmlChar *ch,
						 int len);
void		processingInstruction		(void *ctx,
						 const xmlChar *target,
						 const xmlChar *data);
void		globalNamespace			(void *ctx,
						 const xmlChar *href,
						 const xmlChar *prefix);
void		setNamespace			(void *ctx,
						 const xmlChar *name);
xmlNsPtr	getNamespace			(void *ctx);
int		checkNamespace			(void *ctx,
						 xmlChar *nameSpace);
void		namespaceDecl			(void *ctx,
						 const xmlChar *href,
						 const xmlChar *prefix);
void		comment				(void *ctx,
						 const xmlChar *value);
void		cdataBlock			(void *ctx,
						 const xmlChar *value,
						 int len);

void		xmlDefaultSAXHandlerInit	(void);
void		htmlDefaultSAXHandlerInit	(void);
#ifdef __cplusplus
}
#endif
#endif /* __XML_SAX_H__ */