ReactOS  0.4.14-dev-1256-g2125fec
SAX2.h
Go to the documentation of this file.
1 /*
2  * Summary: SAX2 parser interface used to build the DOM tree
3  * Description: those are the default SAX2 interfaces used by
4  * the library when building DOM tree.
5  *
6  * Copy: See Copyright for the status of this software.
7  *
8  * Author: Daniel Veillard
9  */
10 
11 
12 #ifndef __XML_SAX2_H__
13 #define __XML_SAX2_H__
14 
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <libxml/xmlversion.h>
18 #include <libxml/parser.h>
19 #include <libxml/xlink.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25  xmlSAX2GetPublicId (void *ctx);
27  xmlSAX2GetSystemId (void *ctx);
28 XMLPUBFUN void XMLCALL
29  xmlSAX2SetDocumentLocator (void *ctx,
30  xmlSAXLocatorPtr loc);
31 
33  xmlSAX2GetLineNumber (void *ctx);
35  xmlSAX2GetColumnNumber (void *ctx);
36 
38  xmlSAX2IsStandalone (void *ctx);
40  xmlSAX2HasInternalSubset (void *ctx);
42  xmlSAX2HasExternalSubset (void *ctx);
43 
44 XMLPUBFUN void XMLCALL
45  xmlSAX2InternalSubset (void *ctx,
46  const xmlChar *name,
47  const xmlChar *ExternalID,
48  const xmlChar *SystemID);
49 XMLPUBFUN void XMLCALL
50  xmlSAX2ExternalSubset (void *ctx,
51  const xmlChar *name,
52  const xmlChar *ExternalID,
53  const xmlChar *SystemID);
55  xmlSAX2GetEntity (void *ctx,
56  const xmlChar *name);
58  xmlSAX2GetParameterEntity (void *ctx,
59  const xmlChar *name);
61  xmlSAX2ResolveEntity (void *ctx,
62  const xmlChar *publicId,
63  const xmlChar *systemId);
64 
65 XMLPUBFUN void XMLCALL
66  xmlSAX2EntityDecl (void *ctx,
67  const xmlChar *name,
68  int type,
69  const xmlChar *publicId,
70  const xmlChar *systemId,
71  xmlChar *content);
72 XMLPUBFUN void XMLCALL
73  xmlSAX2AttributeDecl (void *ctx,
74  const xmlChar *elem,
75  const xmlChar *fullname,
76  int type,
77  int def,
78  const xmlChar *defaultValue,
80 XMLPUBFUN void XMLCALL
81  xmlSAX2ElementDecl (void *ctx,
82  const xmlChar *name,
83  int type,
85 XMLPUBFUN void XMLCALL
86  xmlSAX2NotationDecl (void *ctx,
87  const xmlChar *name,
88  const xmlChar *publicId,
89  const xmlChar *systemId);
90 XMLPUBFUN void XMLCALL
91  xmlSAX2UnparsedEntityDecl (void *ctx,
92  const xmlChar *name,
93  const xmlChar *publicId,
94  const xmlChar *systemId,
95  const xmlChar *notationName);
96 
97 XMLPUBFUN void XMLCALL
98  xmlSAX2StartDocument (void *ctx);
99 XMLPUBFUN void XMLCALL
100  xmlSAX2EndDocument (void *ctx);
101 #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
102  defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || \
103  defined(LIBXML_LEGACY_ENABLED)
104 XMLPUBFUN void XMLCALL
105  xmlSAX2StartElement (void *ctx,
106  const xmlChar *fullname,
107  const xmlChar **atts);
108 XMLPUBFUN void XMLCALL
109  xmlSAX2EndElement (void *ctx,
110  const xmlChar *name);
111 #endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */
112 XMLPUBFUN void XMLCALL
113  xmlSAX2StartElementNs (void *ctx,
114  const xmlChar *localname,
115  const xmlChar *prefix,
116  const xmlChar *URI,
117  int nb_namespaces,
118  const xmlChar **namespaces,
119  int nb_attributes,
120  int nb_defaulted,
121  const xmlChar **attributes);
122 XMLPUBFUN void XMLCALL
123  xmlSAX2EndElementNs (void *ctx,
124  const xmlChar *localname,
125  const xmlChar *prefix,
126  const xmlChar *URI);
127 XMLPUBFUN void XMLCALL
128  xmlSAX2Reference (void *ctx,
129  const xmlChar *name);
130 XMLPUBFUN void XMLCALL
131  xmlSAX2Characters (void *ctx,
132  const xmlChar *ch,
133  int len);
134 XMLPUBFUN void XMLCALL
135  xmlSAX2IgnorableWhitespace (void *ctx,
136  const xmlChar *ch,
137  int len);
138 XMLPUBFUN void XMLCALL
139  xmlSAX2ProcessingInstruction (void *ctx,
140  const xmlChar *target,
141  const xmlChar *data);
142 XMLPUBFUN void XMLCALL
143  xmlSAX2Comment (void *ctx,
144  const xmlChar *value);
145 XMLPUBFUN void XMLCALL
146  xmlSAX2CDataBlock (void *ctx,
147  const xmlChar *value,
148  int len);
149 
150 #ifdef LIBXML_SAX1_ENABLED
151 XMLPUBFUN int XMLCALL
152  xmlSAXDefaultVersion (int version);
153 #endif /* LIBXML_SAX1_ENABLED */
154 
155 XMLPUBFUN int XMLCALL
157  int version);
158 XMLPUBFUN void XMLCALL
160  int warning);
161 #ifdef LIBXML_HTML_ENABLED
162 XMLPUBFUN void XMLCALL
163  xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
164 XMLPUBFUN void XMLCALL
165  htmlDefaultSAXHandlerInit (void);
166 #endif
167 #ifdef LIBXML_DOCB_ENABLED
168 XMLPUBFUN void XMLCALL
169  xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
170 XMLPUBFUN void XMLCALL
171  docbDefaultSAXHandlerInit (void);
172 #endif
173 XMLPUBFUN void XMLCALL
175 #ifdef __cplusplus
176 }
177 #endif
178 #endif /* __XML_SAX2_H__ */
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
Definition: SAX2.c:2742
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
Definition: SAX2.c:337
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
Definition: SAX2.c:2678
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
Definition: SAX2.c:2532
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
Definition: SAX2.c:983
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define XMLPUBFUN
Definition: xmlexports.h:30
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
Definition: SAX2.c:1048
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
Definition: SAX2.c:802
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:848
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
Definition: SAX2.c:664
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
Definition: SAX2.c:273
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
Definition: SAX2.c:321
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:392
XMLPUBFUN int XMLCALL xmlSAXVersion(xmlSAXHandler *hdlr, int version)
Definition: SAX2.c:2866
static size_t elem
Definition: string.c:68
content
Definition: atl_ax.c:993
XMLPUBFUN void XMLCALL xmlSAX2StartElementNs(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
Definition: SAX2.c:2208
static const WCHAR version[]
Definition: asmname.c:66
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator(void *ctx, xmlSAXLocatorPtr loc)
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
Definition: SAX2.c:734
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:257
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:354
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
Definition: SAX2.c:899
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
Definition: SAX2.c:2500
const char * fullname
Definition: shader.c:1766
unsigned char xmlChar
Definition: xmlstring.h:28
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN void XMLCALL xmlSAX2InitDefaultSAXHandler(xmlSAXHandler *hdlr, int warning)
Definition: SAX2.c:2921
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:289
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:519
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
Definition: SAX2.c:305
XMLPUBFUN void XMLCALL xmlDefaultSAXHandlerInit(void)
Definition: SAX2.c:2939
XMLPUBFUN void XMLCALL xmlSAX2EndElementNs(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI)
#define XMLCALL
Definition: name.c:38
GLenum target
Definition: glext.h:7315
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:556
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
Definition: SAX2.c:2804
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:636
#define warning(s)
Definition: debug.h:71
_In_ uint16_t _Out_ ULONG * atts
Definition: btrfs_drv.h:1076