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.
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
9 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
20 #include <libxml2_parser.h>
22 #ifdef LIBXML_XPTR_ENABLED
23 #include <libxml2_xlink.h>
29 XMLPUBFUN const xmlChar * XMLCALL
30 xmlSAX2GetPublicId (void *ctx);
31 XMLPUBFUN const xmlChar * XMLCALL
32 xmlSAX2GetSystemId (void *ctx);
33 XMLPUBFUN void XMLCALL
34 xmlSAX2SetDocumentLocator (void *ctx,
35 xmlSAXLocatorPtr loc);
38 xmlSAX2GetLineNumber (void *ctx);
40 xmlSAX2GetColumnNumber (void *ctx);
43 xmlSAX2IsStandalone (void *ctx);
45 xmlSAX2HasInternalSubset (void *ctx);
47 xmlSAX2HasExternalSubset (void *ctx);
49 XMLPUBFUN void XMLCALL
50 xmlSAX2InternalSubset (void *ctx,
52 const xmlChar *ExternalID,
53 const xmlChar *SystemID);
54 XMLPUBFUN void XMLCALL
55 xmlSAX2ExternalSubset (void *ctx,
57 const xmlChar *ExternalID,
58 const xmlChar *SystemID);
59 XMLPUBFUN xmlEntityPtr XMLCALL
60 xmlSAX2GetEntity (void *ctx,
62 XMLPUBFUN xmlEntityPtr XMLCALL
63 xmlSAX2GetParameterEntity (void *ctx,
65 XMLPUBFUN xmlParserInputPtr XMLCALL
66 xmlSAX2ResolveEntity (void *ctx,
67 const xmlChar *publicId,
68 const xmlChar *systemId);
70 XMLPUBFUN void XMLCALL
71 xmlSAX2EntityDecl (void *ctx,
74 const xmlChar *publicId,
75 const xmlChar *systemId,
77 XMLPUBFUN void XMLCALL
78 xmlSAX2AttributeDecl (void *ctx,
80 const xmlChar *fullname,
83 const xmlChar *defaultValue,
84 xmlEnumerationPtr tree);
85 XMLPUBFUN void XMLCALL
86 xmlSAX2ElementDecl (void *ctx,
89 xmlElementContentPtr content);
90 XMLPUBFUN void XMLCALL
91 xmlSAX2NotationDecl (void *ctx,
93 const xmlChar *publicId,
94 const xmlChar *systemId);
95 XMLPUBFUN void XMLCALL
96 xmlSAX2UnparsedEntityDecl (void *ctx,
98 const xmlChar *publicId,
99 const xmlChar *systemId,
100 const xmlChar *notationName);
102 XMLPUBFUN void XMLCALL
103 xmlSAX2StartDocument (void *ctx);
104 XMLPUBFUN void XMLCALL
105 xmlSAX2EndDocument (void *ctx);
106 XMLPUBFUN void XMLCALL
107 xmlSAX2StartElement (void *ctx,
108 const xmlChar *fullname,
109 const xmlChar **atts);
110 XMLPUBFUN void XMLCALL
111 xmlSAX2EndElement (void *ctx,
112 const xmlChar *name);
113 XMLPUBFUN void XMLCALL
114 xmlSAX2StartElementNs (void *ctx,
115 const xmlChar *localname,
116 const xmlChar *prefix,
119 const xmlChar **namespaces,
122 const xmlChar **attributes);
123 XMLPUBFUN void XMLCALL
124 xmlSAX2EndElementNs (void *ctx,
125 const xmlChar *localname,
126 const xmlChar *prefix,
128 XMLPUBFUN void XMLCALL
129 xmlSAX2Reference (void *ctx,
130 const xmlChar *name);
131 XMLPUBFUN void XMLCALL
132 xmlSAX2Characters (void *ctx,
135 XMLPUBFUN void XMLCALL
136 xmlSAX2IgnorableWhitespace (void *ctx,
139 XMLPUBFUN void XMLCALL
140 xmlSAX2ProcessingInstruction (void *ctx,
141 const xmlChar *target,
142 const xmlChar *data);
143 XMLPUBFUN void XMLCALL
144 xmlSAX2Comment (void *ctx,
145 const xmlChar *value);
146 XMLPUBFUN void XMLCALL
147 xmlSAX2CDataBlock (void *ctx,
148 const xmlChar *value,
151 XMLPUBFUN int XMLCALL
152 xmlSAXDefaultVersion (int version);
154 XMLPUBFUN int XMLCALL
155 xmlSAXVersion (xmlSAXHandler *hdlr,
157 XMLPUBFUN void XMLCALL
158 xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,
160 #ifdef LIBXML_HTML_ENABLED
161 XMLPUBFUN void XMLCALL
162 xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
164 #ifdef LIBXML_DOCB_ENABLED
165 XMLPUBFUN void XMLCALL
166 xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
168 XMLPUBFUN void XMLCALL
169 xmlDefaultSAXHandlerInit (void);
170 XMLPUBFUN void XMLCALL
171 htmlDefaultSAXHandlerInit (void);
172 XMLPUBFUN void XMLCALL
173 docbDefaultSAXHandlerInit (void);
177 #endif /* XML_SAX2_H */