1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-06 05:57:39 +03:00

174 lines
4.2 KiB
C
Raw Normal View History

2001-02-23 17:55:21 +00:00
/*
* Summary: Old SAX version 1 handler, deprecated
* Description: DEPRECATED set of SAX version 1 interfaces used to
* build the DOM tree.
2001-02-23 17:55:21 +00:00
*
* Copy: See Copyright for the status of this software.
2001-02-23 17:55:21 +00:00
*
* Author: Daniel Veillard
2001-02-23 17:55:21 +00:00
*/
#ifndef __XML_SAX_H__
#define __XML_SAX_H__
#include <stdio.h>
#include <stdlib.h>
2003-08-25 09:05:12 +00:00
#include <libxml/xmlversion.h>
2001-02-23 17:55:21 +00:00
#include <libxml/parser.h>
#include <libxml/xlink.h>
2005-01-02 09:53:13 +00:00
#ifdef LIBXML_LEGACY_ENABLED
2001-02-23 17:55:21 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2003-08-25 09:05:12 +00:00
XMLPUBFUN const xmlChar * XMLCALL
getPublicId (void *ctx);
XMLPUBFUN const xmlChar * XMLCALL
2003-08-25 10:34:41 +00:00
getSystemId (void *ctx);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
setDocumentLocator (void *ctx,
2001-02-23 17:55:21 +00:00
xmlSAXLocatorPtr loc);
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
getLineNumber (void *ctx);
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
getColumnNumber (void *ctx);
2001-02-23 17:55:21 +00:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
isStandalone (void *ctx);
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
hasInternalSubset (void *ctx);
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
hasExternalSubset (void *ctx);
2001-02-23 17:55:21 +00:00
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
internalSubset (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
const xmlChar *ExternalID,
const xmlChar *SystemID);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
externalSubset (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
const xmlChar *ExternalID,
const xmlChar *SystemID);
XMLPUBFUN xmlEntityPtr XMLCALL
2003-08-25 10:34:41 +00:00
getEntity (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name);
XMLPUBFUN xmlEntityPtr XMLCALL
2003-08-25 10:34:41 +00:00
getParameterEntity (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name);
XMLPUBFUN xmlParserInputPtr XMLCALL
2003-08-25 10:34:41 +00:00
resolveEntity (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *publicId,
const xmlChar *systemId);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
entityDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
int type,
const xmlChar *publicId,
const xmlChar *systemId,
xmlChar *content);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
attributeDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *elem,
const xmlChar *fullname,
2001-02-23 17:55:21 +00:00
int type,
int def,
const xmlChar *defaultValue,
xmlEnumerationPtr tree);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
elementDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
int type,
xmlElementContentPtr content);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
notationDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
const xmlChar *publicId,
const xmlChar *systemId);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
unparsedEntityDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name,
const xmlChar *publicId,
const xmlChar *systemId,
const xmlChar *notationName);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
startDocument (void *ctx);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
endDocument (void *ctx);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
attribute (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *fullname,
const xmlChar *value);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
startElement (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *fullname,
const xmlChar **atts);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
endElement (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
reference (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
characters (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *ch,
int len);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
ignorableWhitespace (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *ch,
int len);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
processingInstruction (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *target,
const xmlChar *data);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
globalNamespace (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *href,
const xmlChar *prefix);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
setNamespace (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *name);
XMLPUBFUN xmlNsPtr XMLCALL
2003-08-25 10:34:41 +00:00
getNamespace (void *ctx);
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
checkNamespace (void *ctx,
2001-02-23 17:55:21 +00:00
xmlChar *nameSpace);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
namespaceDecl (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *href,
const xmlChar *prefix);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
comment (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *value);
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
cdataBlock (void *ctx,
2001-02-23 17:55:21 +00:00
const xmlChar *value,
int len);
2005-01-02 09:53:13 +00:00
#ifdef LIBXML_SAX1_ENABLED
XMLPUBFUN void XMLCALL
initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
int warning);
#ifdef LIBXML_HTML_ENABLED
XMLPUBFUN void XMLCALL
inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
#endif
#ifdef LIBXML_DOCB_ENABLED
XMLPUBFUN void XMLCALL
initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
#endif
2005-01-02 09:53:13 +00:00
#endif /* LIBXML_SAX1_ENABLED */
2001-02-23 17:55:21 +00:00
#ifdef __cplusplus
}
#endif
2005-01-02 09:53:13 +00:00
#endif /* LIBXML_LEGACY_ENABLED */
2001-02-23 17:55:21 +00:00
#endif /* __XML_SAX_H__ */