2001-02-23 17:55:21 +00:00
/*
2003-11-18 20:56:51 +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
*
2003-11-18 20:56:51 +00:00
* Copy : See Copyright for the status of this software .
2001-02-23 17:55:21 +00:00
*
2003-11-18 20:56:51 +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>
Re-examined the problems of configuring a "minimal" library.
Synchronized the header files with the library code in order
to assure that all the various conditionals (LIBXML_xxxx_ENABLED)
were the same in both. Modified the API database content to more
accurately reflect the conditionals. Enhanced the generation
of that database. Although there was no substantial change to
any of the library code's logic, a large number of files were
modified to achieve the above, and the configuration script
was enhanced to do some automatic enabling of features (e.g.
--with-xinclude forces --with-xpath). Additionally, all the format
errors discovered by apibuild.py were corrected.
* configure.in: enhanced cross-checking of options
* doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml,
doc/libxml2-api.xml, gentest.py: changed the usage of the
<cond> element in module descriptions
* elfgcchack.h, testapi.c: regenerated with proper conditionals
* HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c,
testSAX.c: cleaned up conditionals
* include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h,
hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h,
valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]:
synchronized the conditionals with the corresponding module code
* doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c:
added additional conditions required for compilation
* doc/*.html, doc/html/*.html: rebuilt the docs
2005-01-02 09:53:13 +00:00
# ifdef LIBXML_LEGACY_ENABLED
2004-06-27 12:08:10 +00:00
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 ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN const xmlChar * XMLCALL
2003-08-25 10:34:41 +00:00
getSystemId ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
setDocumentLocator ( void * ctx ,
2001-02-23 17:55:21 +00:00
xmlSAXLocatorPtr loc ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
getLineNumber ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
getColumnNumber ( void * ctx ) ;
2001-02-23 17:55:21 +00:00
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
isStandalone ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
hasInternalSubset ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
hasExternalSubset ( void * ctx ) ;
2001-02-23 17:55:21 +00:00
2012-09-11 13:26:36 +08: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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ,
2001-07-18 19:30:27 +00:00
const xmlChar * fullname ,
2001-02-23 17:55:21 +00:00
int type ,
int def ,
const xmlChar * defaultValue ,
xmlEnumerationPtr tree ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
startDocument ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-08-25 10:34:41 +00:00
endDocument ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN xmlNsPtr XMLCALL
2003-08-25 10:34:41 +00:00
getNamespace ( void * ctx ) ;
2012-09-11 13:26:36 +08:00
XMLPUBFUN int XMLCALL
2003-08-25 10:34:41 +00:00
checkNamespace ( void * ctx ,
2001-02-23 17:55:21 +00:00
xmlChar * nameSpace ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
2012-09-11 13:26:36 +08:00
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 ) ;
Re-examined the problems of configuring a "minimal" library.
Synchronized the header files with the library code in order
to assure that all the various conditionals (LIBXML_xxxx_ENABLED)
were the same in both. Modified the API database content to more
accurately reflect the conditionals. Enhanced the generation
of that database. Although there was no substantial change to
any of the library code's logic, a large number of files were
modified to achieve the above, and the configuration script
was enhanced to do some automatic enabling of features (e.g.
--with-xinclude forces --with-xpath). Additionally, all the format
errors discovered by apibuild.py were corrected.
* configure.in: enhanced cross-checking of options
* doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml,
doc/libxml2-api.xml, gentest.py: changed the usage of the
<cond> element in module descriptions
* elfgcchack.h, testapi.c: regenerated with proper conditionals
* HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c,
testSAX.c: cleaned up conditionals
* include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h,
hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h,
valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]:
synchronized the conditionals with the corresponding module code
* doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c:
added additional conditions required for compilation
* doc/*.html, doc/html/*.html: rebuilt the docs
2005-01-02 09:53:13 +00:00
# ifdef LIBXML_SAX1_ENABLED
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-09-25 14:29:29 +00:00
initxmlDefaultSAXHandler ( xmlSAXHandlerV1 * hdlr ,
2001-10-13 09:15:48 +00:00
int warning ) ;
# ifdef LIBXML_HTML_ENABLED
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-09-25 14:29:29 +00:00
inithtmlDefaultSAXHandler ( xmlSAXHandlerV1 * hdlr ) ;
2001-10-13 09:15:48 +00:00
# endif
# ifdef LIBXML_DOCB_ENABLED
2012-09-11 13:26:36 +08:00
XMLPUBFUN void XMLCALL
2003-09-25 14:29:29 +00:00
initdocbDefaultSAXHandler ( xmlSAXHandlerV1 * hdlr ) ;
2001-10-13 09:15:48 +00:00
# endif
Re-examined the problems of configuring a "minimal" library.
Synchronized the header files with the library code in order
to assure that all the various conditionals (LIBXML_xxxx_ENABLED)
were the same in both. Modified the API database content to more
accurately reflect the conditionals. Enhanced the generation
of that database. Although there was no substantial change to
any of the library code's logic, a large number of files were
modified to achieve the above, and the configuration script
was enhanced to do some automatic enabling of features (e.g.
--with-xinclude forces --with-xpath). Additionally, all the format
errors discovered by apibuild.py were corrected.
* configure.in: enhanced cross-checking of options
* doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml,
doc/libxml2-api.xml, gentest.py: changed the usage of the
<cond> element in module descriptions
* elfgcchack.h, testapi.c: regenerated with proper conditionals
* HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c,
testSAX.c: cleaned up conditionals
* include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h,
hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h,
valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]:
synchronized the conditionals with the corresponding module code
* doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c:
added additional conditions required for compilation
* doc/*.html, doc/html/*.html: rebuilt the docs
2005-01-02 09:53:13 +00:00
# endif /* LIBXML_SAX1_ENABLED */
2001-02-23 17:55:21 +00:00
# ifdef __cplusplus
}
# endif
2004-06-27 12:08:10 +00:00
Re-examined the problems of configuring a "minimal" library.
Synchronized the header files with the library code in order
to assure that all the various conditionals (LIBXML_xxxx_ENABLED)
were the same in both. Modified the API database content to more
accurately reflect the conditionals. Enhanced the generation
of that database. Although there was no substantial change to
any of the library code's logic, a large number of files were
modified to achieve the above, and the configuration script
was enhanced to do some automatic enabling of features (e.g.
--with-xinclude forces --with-xpath). Additionally, all the format
errors discovered by apibuild.py were corrected.
* configure.in: enhanced cross-checking of options
* doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml,
doc/libxml2-api.xml, gentest.py: changed the usage of the
<cond> element in module descriptions
* elfgcchack.h, testapi.c: regenerated with proper conditionals
* HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c,
testSAX.c: cleaned up conditionals
* include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h,
hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h,
valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]:
synchronized the conditionals with the corresponding module code
* doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c:
added additional conditions required for compilation
* doc/*.html, doc/html/*.html: rebuilt the docs
2005-01-02 09:53:13 +00:00
# endif /* LIBXML_LEGACY_ENABLED */
2004-06-27 12:08:10 +00:00
2001-02-23 17:55:21 +00:00
# endif /* __XML_SAX_H__ */