2001-02-23 20:55:21 +03:00
/*
2003-11-18 23:56:51 +03:00
* Summary : The DTD validation
* Description : API for the DTD handling and the validity checking
2001-02-23 20:55:21 +03:00
*
2003-11-18 23:56:51 +03:00
* Copy : See Copyright for the status of this software .
2001-02-23 20:55:21 +03:00
*
2003-11-18 23:56:51 +03:00
* Author : Daniel Veillard
2001-02-23 20:55:21 +03:00
*/
# ifndef __XML_VALID_H__
# define __XML_VALID_H__
2003-08-25 13:05:12 +04:00
# include <libxml/xmlversion.h>
2003-10-10 18:10:40 +04:00
# include <libxml/xmlerror.h>
2023-12-06 20:35:30 +03:00
# define XML_TREE_INTERNALS
2001-02-23 20:55:21 +03:00
# include <libxml/tree.h>
2023-12-06 20:35:30 +03:00
# undef XML_TREE_INTERNALS
2001-03-24 20:00:36 +03:00
# include <libxml/list.h>
2002-09-13 18:48:12 +04:00
# include <libxml/xmlautomata.h>
# include <libxml/xmlregexp.h>
2001-02-23 20:55:21 +03:00
# ifdef __cplusplus
extern " C " {
# endif
2001-04-20 17:03:48 +04:00
/*
2002-03-12 21:46:39 +03:00
* Validation state added for non - determinist content model .
2001-04-20 17:03:48 +04:00
*/
typedef struct _xmlValidState xmlValidState ;
typedef xmlValidState * xmlValidStatePtr ;
2001-02-23 20:55:21 +03:00
/**
2002-01-22 21:15:52 +03:00
* xmlValidityErrorFunc :
2004-08-04 02:41:11 +04:00
* @ ctx : usually an xmlValidCtxtPtr to a validity error context ,
* but comes from ctxt - > userData ( which normally contains such
* a pointer ) ; ctxt - > userData can be changed by the user .
2002-01-22 21:15:52 +03:00
* @ msg : the string to format * printf like vararg
* @ . . . : remaining arguments to the format
*
2002-03-12 21:46:39 +03:00
* Callback called when a validity error is found . This is a message
2002-01-22 21:15:52 +03:00
* oriented function similar to an * printf function .
2001-02-23 20:55:21 +03:00
*/
2022-12-08 04:48:27 +03:00
typedef void ( * xmlValidityErrorFunc ) ( void * ctx ,
2002-01-22 21:15:52 +03:00
const char * msg ,
2009-04-15 13:20:25 +04:00
. . . ) LIBXML_ATTR_FORMAT ( 2 , 3 ) ;
2001-02-23 20:55:21 +03:00
2002-01-22 21:15:52 +03:00
/**
* xmlValidityWarningFunc :
2004-08-04 02:41:11 +04:00
* @ ctx : usually an xmlValidCtxtPtr to a validity error context ,
* but comes from ctxt - > userData ( which normally contains such
* a pointer ) ; ctxt - > userData can be changed by the user .
2002-01-22 21:15:52 +03:00
* @ msg : the string to format * printf like vararg
* @ . . . : remaining arguments to the format
*
2002-03-12 21:46:39 +03:00
* Callback called when a validity warning is found . This is a message
2002-01-22 21:15:52 +03:00
* oriented function similar to an * printf function .
*/
2022-12-08 04:48:27 +03:00
typedef void ( * xmlValidityWarningFunc ) ( void * ctx ,
2002-01-22 21:15:52 +03:00
const char * msg ,
2009-04-15 13:20:25 +04:00
. . . ) LIBXML_ATTR_FORMAT ( 2 , 3 ) ;
2001-02-23 20:55:21 +03:00
2003-11-16 09:25:42 +03:00
/*
2002-01-22 21:15:52 +03:00
* xmlValidCtxt :
2002-03-12 21:46:39 +03:00
* An xmlValidCtxt is used for error reporting when validating .
2002-01-22 21:15:52 +03:00
*/
2001-02-23 20:55:21 +03:00
typedef struct _xmlValidCtxt xmlValidCtxt ;
typedef xmlValidCtxt * xmlValidCtxtPtr ;
struct _xmlValidCtxt {
void * userData ; /* user specific data block */
xmlValidityErrorFunc error ; /* the callback in case of errors */
xmlValidityWarningFunc warning ; /* the callback in case of warning */
/* Node analysis stack used when validating within entities */
xmlNodePtr node ; /* Current parsed Node */
int nodeNr ; /* Depth of the parsing stack */
int nodeMax ; /* Max depth of the parsing stack */
xmlNodePtr * nodeTab ; /* array of nodes */
2022-01-13 19:06:14 +03:00
unsigned int flags ; /* internal flags */
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ; /* the document */
int valid ; /* temporary validity check result */
2001-04-20 17:03:48 +04:00
/* state state used for non-determinist content validation */
xmlValidState * vstate ; /* current state */
int vstateNr ; /* Depth of the validation stack */
int vstateMax ; /* Max depth of the validation stack */
xmlValidState * vstateTab ; /* array of validation states */
2002-09-13 18:48:12 +04:00
# ifdef LIBXML_REGEXP_ENABLED
xmlAutomataPtr am ; /* the automata */
xmlAutomataStatePtr state ; /* used to build the automata */
# else
void * am ;
void * state ;
# endif
2001-02-23 20:55:21 +03:00
} ;
/*
2002-03-12 21:46:39 +03:00
* ALL notation declarations are stored in a table .
* There is one table per DTD .
2001-02-23 20:55:21 +03:00
*/
typedef struct _xmlHashTable xmlNotationTable ;
typedef xmlNotationTable * xmlNotationTablePtr ;
/*
2002-03-12 21:46:39 +03:00
* ALL element declarations are stored in a table .
* There is one table per DTD .
2001-02-23 20:55:21 +03:00
*/
typedef struct _xmlHashTable xmlElementTable ;
typedef xmlElementTable * xmlElementTablePtr ;
/*
2002-03-12 21:46:39 +03:00
* ALL attribute declarations are stored in a table .
* There is one table per DTD .
2001-02-23 20:55:21 +03:00
*/
typedef struct _xmlHashTable xmlAttributeTable ;
typedef xmlAttributeTable * xmlAttributeTablePtr ;
/*
2002-03-12 21:46:39 +03:00
* ALL IDs attributes are stored in a table .
* There is one table per document .
2001-02-23 20:55:21 +03:00
*/
typedef struct _xmlHashTable xmlIDTable ;
typedef xmlIDTable * xmlIDTablePtr ;
/*
2002-03-12 21:46:39 +03:00
* ALL Refs attributes are stored in a table .
* There is one table per document .
2001-02-23 20:55:21 +03:00
*/
typedef struct _xmlHashTable xmlRefTable ;
typedef xmlRefTable * xmlRefTablePtr ;
/* Notation */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlNotationPtr
2003-08-25 13:05:12 +04:00
xmlAddNotationDecl ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDtdPtr dtd ,
const xmlChar * name ,
const xmlChar * PublicID ,
const xmlChar * SystemID ) ;
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 12:53:13 +03:00
# ifdef LIBXML_TREE_ENABLED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlNotationTablePtr
2003-08-27 12:59:58 +04:00
xmlCopyNotationTable ( xmlNotationTablePtr table ) ;
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 12:53:13 +03:00
# endif /* LIBXML_TREE_ENABLED */
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeNotationTable ( xmlNotationTablePtr table ) ;
2003-09-29 17:20:24 +04:00
# ifdef LIBXML_OUTPUT_ENABLED
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpNotationDecl ( xmlBufferPtr buf ,
2001-02-23 20:55:21 +03:00
xmlNotationPtr nota ) ;
2024-02-01 21:26:42 +03:00
/* XML_DEPRECATED, still used in lxml */
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpNotationTable ( xmlBufferPtr buf ,
2001-02-23 20:55:21 +03:00
xmlNotationTablePtr table ) ;
2003-09-29 17:20:24 +04:00
# endif /* LIBXML_OUTPUT_ENABLED */
2001-02-23 20:55:21 +03:00
/* Element Content */
2005-01-25 03:22:52 +03:00
/* the non Doc version are being deprecated */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementContentPtr
2003-08-27 12:59:58 +04:00
xmlNewElementContent ( const xmlChar * name ,
xmlElementContentType type ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementContentPtr
2003-08-27 12:59:58 +04:00
xmlCopyElementContent ( xmlElementContentPtr content ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeElementContent ( xmlElementContentPtr cur ) ;
2005-01-25 03:22:52 +03:00
/* the new versions with doc argument */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementContentPtr
2005-01-25 03:22:52 +03:00
xmlNewDocElementContent ( xmlDocPtr doc ,
const xmlChar * name ,
xmlElementContentType type ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementContentPtr
2005-01-25 03:22:52 +03:00
xmlCopyDocElementContent ( xmlDocPtr doc ,
xmlElementContentPtr content ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2005-01-25 03:22:52 +03:00
xmlFreeDocElementContent ( xmlDocPtr doc ,
xmlElementContentPtr cur ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlSnprintfElementContent ( char * buf ,
int size ,
xmlElementContentPtr content ,
2005-06-27 01:49:08 +04:00
int englob ) ;
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 12:53:13 +03:00
# ifdef LIBXML_OUTPUT_ENABLED
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlSprintfElementContent ( char * buf ,
xmlElementContentPtr content ,
2005-06-27 01:49:08 +04:00
int englob ) ;
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 12:53:13 +03:00
# endif /* LIBXML_OUTPUT_ENABLED */
2001-02-23 20:55:21 +03:00
/* Element */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementPtr
2003-08-27 12:59:58 +04:00
xmlAddElementDecl ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDtdPtr dtd ,
const xmlChar * name ,
xmlElementTypeVal type ,
xmlElementContentPtr content ) ;
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 12:53:13 +03:00
# ifdef LIBXML_TREE_ENABLED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementTablePtr
2003-08-27 12:59:58 +04:00
xmlCopyElementTable ( xmlElementTablePtr table ) ;
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 12:53:13 +03:00
# endif /* LIBXML_TREE_ENABLED */
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeElementTable ( xmlElementTablePtr table ) ;
2003-09-29 17:20:24 +04:00
# ifdef LIBXML_OUTPUT_ENABLED
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpElementTable ( xmlBufferPtr buf ,
2001-02-23 20:55:21 +03:00
xmlElementTablePtr table ) ;
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpElementDecl ( xmlBufferPtr buf ,
2001-02-23 20:55:21 +03:00
xmlElementPtr elem ) ;
2003-09-29 17:20:24 +04:00
# endif /* LIBXML_OUTPUT_ENABLED */
2001-02-23 20:55:21 +03:00
/* Enumeration */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlEnumerationPtr
2003-08-27 12:59:58 +04:00
xmlCreateEnumeration ( const xmlChar * name ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeEnumeration ( xmlEnumerationPtr cur ) ;
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 12:53:13 +03:00
# ifdef LIBXML_TREE_ENABLED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlEnumerationPtr
2003-08-27 12:59:58 +04:00
xmlCopyEnumeration ( xmlEnumerationPtr cur ) ;
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 12:53:13 +03:00
# endif /* LIBXML_TREE_ENABLED */
2001-02-23 20:55:21 +03:00
/* Attribute */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlAttributePtr
2003-08-27 12:59:58 +04:00
xmlAddAttributeDecl ( xmlValidCtxtPtr ctxt ,
xmlDtdPtr dtd ,
const xmlChar * elem ,
const xmlChar * name ,
const xmlChar * ns ,
xmlAttributeType type ,
xmlAttributeDefault def ,
const xmlChar * defaultValue ,
xmlEnumerationPtr tree ) ;
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 12:53:13 +03:00
# ifdef LIBXML_TREE_ENABLED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlAttributeTablePtr
2003-08-27 12:59:58 +04:00
xmlCopyAttributeTable ( xmlAttributeTablePtr table ) ;
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 12:53:13 +03:00
# endif /* LIBXML_TREE_ENABLED */
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeAttributeTable ( xmlAttributeTablePtr table ) ;
2003-09-29 17:20:24 +04:00
# ifdef LIBXML_OUTPUT_ENABLED
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpAttributeTable ( xmlBufferPtr buf ,
xmlAttributeTablePtr table ) ;
2024-02-01 21:26:42 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlDumpAttributeDecl ( xmlBufferPtr buf ,
xmlAttributePtr attr ) ;
2003-09-29 17:20:24 +04:00
# endif /* LIBXML_OUTPUT_ENABLED */
2001-02-23 20:55:21 +03:00
/* IDs */
2023-12-10 18:29:31 +03:00
XMLPUBFUN int
2024-02-29 21:38:29 +03:00
xmlAddIDSafe ( xmlAttrPtr attr ,
const xmlChar * value ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlIDPtr
2003-08-27 12:59:58 +04:00
xmlAddID ( xmlValidCtxtPtr ctxt ,
xmlDocPtr doc ,
const xmlChar * value ,
xmlAttrPtr attr ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeIDTable ( xmlIDTablePtr table ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlAttrPtr
2003-08-27 12:59:58 +04:00
xmlGetID ( xmlDocPtr doc ,
const xmlChar * ID ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlIsID ( xmlDocPtr doc ,
xmlNodePtr elem ,
xmlAttrPtr attr ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2012-09-11 09:26:36 +04:00
xmlRemoveID ( xmlDocPtr doc ,
2003-08-27 12:59:58 +04:00
xmlAttrPtr attr ) ;
2001-02-23 20:55:21 +03:00
/* IDREFs */
2022-02-20 21:02:31 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlRefPtr
2003-08-27 12:59:58 +04:00
xmlAddRef ( xmlValidCtxtPtr ctxt ,
xmlDocPtr doc ,
const xmlChar * value ,
xmlAttrPtr attr ) ;
2022-02-20 21:02:31 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
2003-08-27 12:59:58 +04:00
xmlFreeRefTable ( xmlRefTablePtr table ) ;
2022-02-20 21:02:31 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlIsRef ( xmlDocPtr doc ,
xmlNodePtr elem ,
xmlAttrPtr attr ) ;
2022-02-20 21:02:31 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2012-09-11 09:26:36 +04:00
xmlRemoveRef ( xmlDocPtr doc ,
2003-08-27 12:59:58 +04:00
xmlAttrPtr attr ) ;
2022-02-20 21:02:31 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlListPtr
2003-08-27 12:59:58 +04:00
xmlGetRefs ( xmlDocPtr doc ,
const xmlChar * ID ) ;
2001-02-23 20:55:21 +03:00
/**
2002-03-12 21:46:39 +03:00
* The public function calls related to validity checking .
2001-02-23 20:55:21 +03:00
*/
2004-06-27 16:08:10 +04:00
# ifdef LIBXML_VALID_ENABLED
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 12:53:13 +03:00
/* Allocate/Release Validation Contexts */
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlValidCtxtPtr
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 12:53:13 +03:00
xmlNewValidCtxt ( void ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN void
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 12:53:13 +03:00
xmlFreeValidCtxt ( xmlValidCtxtPtr ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateRoot ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateElementDecl ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlElementPtr elem ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlChar *
2003-08-27 12:59:58 +04:00
xmlValidNormalizeAttributeValue ( xmlDocPtr doc ,
2002-02-20 00:08:48 +03:00
xmlNodePtr elem ,
const xmlChar * name ,
const xmlChar * value ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlChar *
2003-08-27 12:59:58 +04:00
xmlValidCtxtNormalizeAttributeValue ( xmlValidCtxtPtr ctxt ,
2002-02-20 00:08:48 +03:00
xmlDocPtr doc ,
2001-02-23 20:55:21 +03:00
xmlNodePtr elem ,
const xmlChar * name ,
const xmlChar * value ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateAttributeDecl ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlAttributePtr attr ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateAttributeValue ( xmlAttributeType type ,
2001-02-23 20:55:21 +03:00
const xmlChar * value ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNotationDecl ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlNotationPtr nota ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateDtd ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlDtdPtr dtd ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateDtdFinal ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateDocument ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateElement ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlNodePtr elem ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateOneElement ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlNodePtr elem ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateOneAttribute ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
xmlNodePtr elem ,
xmlAttrPtr attr ,
const xmlChar * value ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateOneNamespace ( xmlValidCtxtPtr ctxt ,
2002-09-26 20:10:21 +04:00
xmlDocPtr doc ,
xmlNodePtr elem ,
const xmlChar * prefix ,
xmlNsPtr ns ,
const xmlChar * value ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateDocumentFinal ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ) ;
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 12:53:13 +03:00
# endif /* LIBXML_VALID_ENABLED */
# if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNotationUse ( xmlValidCtxtPtr ctxt ,
2001-02-23 20:55:21 +03:00
xmlDocPtr doc ,
const xmlChar * notationName ) ;
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 12:53:13 +03:00
# endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
2004-06-27 16:08:10 +04:00
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlIsMixedElement ( xmlDocPtr doc ,
2001-02-23 20:55:21 +03:00
const xmlChar * name ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlAttributePtr
2003-08-27 12:59:58 +04:00
xmlGetDtdAttrDesc ( xmlDtdPtr dtd ,
2001-02-23 20:55:21 +03:00
const xmlChar * elem ,
const xmlChar * name ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlAttributePtr
2003-08-27 12:59:58 +04:00
xmlGetDtdQAttrDesc ( xmlDtdPtr dtd ,
2001-08-07 05:10:10 +04:00
const xmlChar * elem ,
const xmlChar * name ,
const xmlChar * prefix ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlNotationPtr
2003-08-27 12:59:58 +04:00
xmlGetDtdNotationDesc ( xmlDtdPtr dtd ,
2001-02-23 20:55:21 +03:00
const xmlChar * name ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementPtr
2003-08-27 12:59:58 +04:00
xmlGetDtdQElementDesc ( xmlDtdPtr dtd ,
2001-08-07 05:10:10 +04:00
const xmlChar * name ,
const xmlChar * prefix ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN xmlElementPtr
2003-08-27 12:59:58 +04:00
xmlGetDtdElementDesc ( xmlDtdPtr dtd ,
2001-02-23 20:55:21 +03:00
const xmlChar * name ) ;
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 12:53:13 +03:00
# ifdef LIBXML_VALID_ENABLED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidGetPotentialChildren ( xmlElementContent * ctree ,
2005-10-27 15:56:20 +04:00
const xmlChar * * names ,
2001-02-23 20:55:21 +03:00
int * len ,
int max ) ;
2004-06-27 16:08:10 +04:00
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
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 12:53:13 +03:00
xmlValidGetValidElements ( xmlNode * prev ,
xmlNode * next ,
const xmlChar * * names ,
int max ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNameValue ( const xmlChar * value ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNamesValue ( const xmlChar * value ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNmtokenValue ( const xmlChar * value ) ;
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidateNmtokensValue ( const xmlChar * value ) ;
2002-09-16 14:51:38 +04:00
# ifdef LIBXML_REGEXP_ENABLED
/*
* Validation based on the regexp support
*/
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidBuildContentModel ( xmlValidCtxtPtr ctxt ,
2002-09-16 14:51:38 +04:00
xmlElementPtr elem ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidatePushElement ( xmlValidCtxtPtr ctxt ,
2002-12-20 03:16:24 +03:00
xmlDocPtr doc ,
xmlNodePtr elem ,
const xmlChar * qname ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidatePushCData ( xmlValidCtxtPtr ctxt ,
2002-12-20 03:16:24 +03:00
const xmlChar * data ,
int len ) ;
2024-03-16 16:50:56 +03:00
XML_DEPRECATED
2022-12-08 04:48:27 +03:00
XMLPUBFUN int
2003-08-27 12:59:58 +04:00
xmlValidatePopElement ( xmlValidCtxtPtr ctxt ,
2002-12-20 03:16:24 +03:00
xmlDocPtr doc ,
xmlNodePtr elem ,
const xmlChar * qname ) ;
2002-09-16 14:51:38 +04:00
# endif /* LIBXML_REGEXP_ENABLED */
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 12:53:13 +03:00
# endif /* LIBXML_VALID_ENABLED */
2001-02-23 20:55:21 +03:00
# ifdef __cplusplus
}
# endif
# endif /* __XML_VALID_H__ */