00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __XML_SAX_H__
00011 #define __XML_SAX_H__
00012
00013 #include <stdio.h>
00014 #include <stdlib.h>
00015 #include <libxml/xmlversion.h>
00016 #include <libxml/parser.h>
00017 #include <libxml/xlink.h>
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 XMLPUBFUN const xmlChar * XMLCALL
00023 getPublicId (void *ctx);
00024 XMLPUBFUN const xmlChar * XMLCALL
00025 getSystemId (void *ctx);
00026 XMLPUBFUN void XMLCALL
00027 setDocumentLocator (void *ctx,
00028 xmlSAXLocatorPtr loc);
00029
00030 XMLPUBFUN int XMLCALL
00031 getLineNumber (void *ctx);
00032 XMLPUBFUN int XMLCALL
00033 getColumnNumber (void *ctx);
00034
00035 XMLPUBFUN int XMLCALL
00036 isStandalone (void *ctx);
00037 XMLPUBFUN int XMLCALL
00038 hasInternalSubset (void *ctx);
00039 XMLPUBFUN int XMLCALL
00040 hasExternalSubset (void *ctx);
00041
00042 XMLPUBFUN void XMLCALL
00043 internalSubset (void *ctx,
00044 const xmlChar *name,
00045 const xmlChar *ExternalID,
00046 const xmlChar *SystemID);
00047 XMLPUBFUN void XMLCALL
00048 externalSubset (void *ctx,
00049 const xmlChar *name,
00050 const xmlChar *ExternalID,
00051 const xmlChar *SystemID);
00052 XMLPUBFUN xmlEntityPtr XMLCALL
00053 getEntity (void *ctx,
00054 const xmlChar *name);
00055 XMLPUBFUN xmlEntityPtr XMLCALL
00056 getParameterEntity (void *ctx,
00057 const xmlChar *name);
00058 XMLPUBFUN xmlParserInputPtr XMLCALL
00059 resolveEntity (void *ctx,
00060 const xmlChar *publicId,
00061 const xmlChar *systemId);
00062
00063 XMLPUBFUN void XMLCALL
00064 entityDecl (void *ctx,
00065 const xmlChar *name,
00066 int type,
00067 const xmlChar *publicId,
00068 const xmlChar *systemId,
00069 xmlChar *content);
00070 XMLPUBFUN void XMLCALL
00071 attributeDecl (void *ctx,
00072 const xmlChar *elem,
00073 const xmlChar *fullname,
00074 int type,
00075 int def,
00076 const xmlChar *defaultValue,
00077 xmlEnumerationPtr tree);
00078 XMLPUBFUN void XMLCALL
00079 elementDecl (void *ctx,
00080 const xmlChar *name,
00081 int type,
00082 xmlElementContentPtr content);
00083 XMLPUBFUN void XMLCALL
00084 notationDecl (void *ctx,
00085 const xmlChar *name,
00086 const xmlChar *publicId,
00087 const xmlChar *systemId);
00088 XMLPUBFUN void XMLCALL
00089 unparsedEntityDecl (void *ctx,
00090 const xmlChar *name,
00091 const xmlChar *publicId,
00092 const xmlChar *systemId,
00093 const xmlChar *notationName);
00094
00095 XMLPUBFUN void XMLCALL
00096 startDocument (void *ctx);
00097 XMLPUBFUN void XMLCALL
00098 endDocument (void *ctx);
00099 XMLPUBFUN void XMLCALL
00100 attribute (void *ctx,
00101 const xmlChar *fullname,
00102 const xmlChar *value);
00103 XMLPUBFUN void XMLCALL
00104 startElement (void *ctx,
00105 const xmlChar *fullname,
00106 const xmlChar **atts);
00107 XMLPUBFUN void XMLCALL
00108 endElement (void *ctx,
00109 const xmlChar *name);
00110 XMLPUBFUN void XMLCALL
00111 reference (void *ctx,
00112 const xmlChar *name);
00113 XMLPUBFUN void XMLCALL
00114 characters (void *ctx,
00115 const xmlChar *ch,
00116 int len);
00117 XMLPUBFUN void XMLCALL
00118 ignorableWhitespace (void *ctx,
00119 const xmlChar *ch,
00120 int len);
00121 XMLPUBFUN void XMLCALL
00122 processingInstruction (void *ctx,
00123 const xmlChar *target,
00124 const xmlChar *data);
00125 XMLPUBFUN void XMLCALL
00126 globalNamespace (void *ctx,
00127 const xmlChar *href,
00128 const xmlChar *prefix);
00129 XMLPUBFUN void XMLCALL
00130 setNamespace (void *ctx,
00131 const xmlChar *name);
00132 XMLPUBFUN xmlNsPtr XMLCALL
00133 getNamespace (void *ctx);
00134 XMLPUBFUN int XMLCALL
00135 checkNamespace (void *ctx,
00136 xmlChar *nameSpace);
00137 XMLPUBFUN void XMLCALL
00138 namespaceDecl (void *ctx,
00139 const xmlChar *href,
00140 const xmlChar *prefix);
00141 XMLPUBFUN void XMLCALL
00142 comment (void *ctx,
00143 const xmlChar *value);
00144 XMLPUBFUN void XMLCALL
00145 cdataBlock (void *ctx,
00146 const xmlChar *value,
00147 int len);
00148
00149 XMLPUBFUN void XMLCALL
00150 initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
00151 int warning);
00152 #ifdef LIBXML_HTML_ENABLED
00153 XMLPUBFUN void XMLCALL
00154 inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
00155 #endif
00156 #ifdef LIBXML_DOCB_ENABLED
00157 XMLPUBFUN void XMLCALL
00158 initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
00159 #endif
00160 #ifdef __cplusplus
00161 }
00162 #endif
00163 #endif
00164