-
Notifications
You must be signed in to change notification settings - Fork 0
/
saxhandler.h
97 lines (70 loc) · 1.66 KB
/
saxhandler.h
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
/*
* saxhandler.h
*
*
*
*
* 08/23/01
*/
#ifndef SAXHANDLER_H
#define SAXHANDLER_H
#ifndef Strtree_h
# include "strtree.h"
#endif
typedef StrTreeNode Attributes;
#ifdef WIN32
#ifdef USER
#define EXTDLL __declspec(dllimport)
#else /* not USER */
#define EXTDLL __declspec(dllexport)
#endif
#else /* unix */
#define EXTDLL extern
#endif
/* content
*/
EXTDLL void (*sax_characters)(char* chars, int start, int length);
/* PI
*/
EXTDLL void (*sax_processingInstruction)(char* target, char* data);
/*
*/
EXTDLL void (*sax_startDocument)(void);
/*
*/
EXTDLL void (*sax_endDocument)(void);
/*
* uri: DOCTYPE uri
* localName: element name without namespace prefix
* qName: namespace prefix + element name
* attr; attributes
* nAttributes: number of attributes in "attr"
*/
EXTDLL void (*sax_startElement)(char* uri, char* localName, char* qName, Attributes attr);
/*
* uri: DOCTYPE uri
* localName: element name without namespace prefix
* qName: namespace prefix + element name
*/
EXTDLL void (*sax_endElement)(char* uri, char* localName, char* qName);
/*
* namespaceの倡幌。prefixはnamespace叹、uriは、xmlns="uri"のuri
*/
EXTDLL void (*sax_startPrefixMapping)(char* prefix, char* uri);
/*
* namespaceの姜位。prefixはnamespace叹。
*/
EXTDLL void (*sax_endPrefixMapping)(char* prefix);
/*
*/
EXTDLL void (*sax_error)(char* msg);
/*
*/
EXTDLL void (*sax_fatalError)(char* msg);
/*
*/
EXTDLL void (*sax_warning)(char* msg);
EXTDLL void init_parse_xml (void);
EXTDLL int parse_xml (char*);
EXTDLL char* getValue (Attributes attr, char* key);
#endif