$90 GRAYBYTE WORDPRESS FILE MANAGER $30

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-libxml2/include/libxml2/libxml/

HOME
Current File : /opt/cpanel/ea-libxml2/include/libxml2/libxml//relaxng.h
/**
 * @file
 * 
 * @brief implementation of the Relax-NG validation
 * 
 * implementation of the Relax-NG validation
 *
 * @copyright See Copyright for the status of this software.
 *
 * @author Daniel Veillard
 */

#ifndef __XML_RELAX_NG__
#define __XML_RELAX_NG__

#include <libxml/xmlversion.h>
#include <libxml/xmlerror.h>
#include <libxml/xmlstring.h>
#include <libxml/tree.h>
#include <libxml/parser.h>

#ifdef LIBXML_RELAXNG_ENABLED

#ifdef __cplusplus
extern "C" {
#endif

/** RelaxNG schema */
typedef struct _xmlRelaxNG xmlRelaxNG;
typedef xmlRelaxNG *xmlRelaxNGPtr;


/**
 * Signature of an error callback from a Relax-NG validation
 *
 * @param ctx  the validation context
 * @param msg  the message
 * @param ... extra arguments
 */
typedef void (*xmlRelaxNGValidityErrorFunc) (void *ctx,
						      const char *msg,
						      ...) LIBXML_ATTR_FORMAT(2,3);

/**
 * Signature of a warning callback from a Relax-NG validation
 *
 * @param ctx  the validation context
 * @param msg  the message
 * @param ... extra arguments
 */
typedef void (*xmlRelaxNGValidityWarningFunc) (void *ctx,
							const char *msg,
							...) LIBXML_ATTR_FORMAT(2,3);

/** RelaxNG parser context */
typedef struct _xmlRelaxNGParserCtxt xmlRelaxNGParserCtxt;
typedef xmlRelaxNGParserCtxt *xmlRelaxNGParserCtxtPtr;

/** RelaxNG validation context */
typedef struct _xmlRelaxNGValidCtxt xmlRelaxNGValidCtxt;
typedef xmlRelaxNGValidCtxt *xmlRelaxNGValidCtxtPtr;

/**
 * List of possible Relax NG validation errors
 */
typedef enum {
    XML_RELAXNG_OK = 0,
    XML_RELAXNG_ERR_MEMORY,
    XML_RELAXNG_ERR_TYPE,
    XML_RELAXNG_ERR_TYPEVAL,
    XML_RELAXNG_ERR_DUPID,
    XML_RELAXNG_ERR_TYPECMP,
    XML_RELAXNG_ERR_NOSTATE,
    XML_RELAXNG_ERR_NODEFINE,
    XML_RELAXNG_ERR_LISTEXTRA,
    XML_RELAXNG_ERR_LISTEMPTY,
    XML_RELAXNG_ERR_INTERNODATA,
    XML_RELAXNG_ERR_INTERSEQ,
    XML_RELAXNG_ERR_INTEREXTRA,
    XML_RELAXNG_ERR_ELEMNAME,
    XML_RELAXNG_ERR_ATTRNAME,
    XML_RELAXNG_ERR_ELEMNONS,
    XML_RELAXNG_ERR_ATTRNONS,
    XML_RELAXNG_ERR_ELEMWRONGNS,
    XML_RELAXNG_ERR_ATTRWRONGNS,
    XML_RELAXNG_ERR_ELEMEXTRANS,
    XML_RELAXNG_ERR_ATTREXTRANS,
    XML_RELAXNG_ERR_ELEMNOTEMPTY,
    XML_RELAXNG_ERR_NOELEM,
    XML_RELAXNG_ERR_NOTELEM,
    XML_RELAXNG_ERR_ATTRVALID,
    XML_RELAXNG_ERR_CONTENTVALID,
    XML_RELAXNG_ERR_EXTRACONTENT,
    XML_RELAXNG_ERR_INVALIDATTR,
    XML_RELAXNG_ERR_DATAELEM,
    XML_RELAXNG_ERR_VALELEM,
    XML_RELAXNG_ERR_LISTELEM,
    XML_RELAXNG_ERR_DATATYPE,
    XML_RELAXNG_ERR_VALUE,
    XML_RELAXNG_ERR_LIST,
    XML_RELAXNG_ERR_NOGRAMMAR,
    XML_RELAXNG_ERR_EXTRADATA,
    XML_RELAXNG_ERR_LACKDATA,
    XML_RELAXNG_ERR_INTERNAL,
    XML_RELAXNG_ERR_ELEMWRONG,
    XML_RELAXNG_ERR_TEXTWRONG
} xmlRelaxNGValidErr;

/**
 * List of possible Relax NG Parser flags
 */
typedef enum {
    XML_RELAXNGP_NONE = 0,
    XML_RELAXNGP_FREE_DOC = 1,
    XML_RELAXNGP_CRNG = 2
} xmlRelaxNGParserFlag;

XMLPUBFUN int
		    xmlRelaxNGInitTypes		(void);
XML_DEPRECATED
XMLPUBFUN void
		    xmlRelaxNGCleanupTypes	(void);

/*
 * Interfaces for parsing.
 */
XMLPUBFUN xmlRelaxNGParserCtxt *
		    xmlRelaxNGNewParserCtxt	(const char *URL);
XMLPUBFUN xmlRelaxNGParserCtxt *
		    xmlRelaxNGNewMemParserCtxt	(const char *buffer,
						 int size);
XMLPUBFUN xmlRelaxNGParserCtxt *
		    xmlRelaxNGNewDocParserCtxt	(xmlDoc *doc);

XMLPUBFUN int
		    xmlRelaxParserSetFlag	(xmlRelaxNGParserCtxt *ctxt,
						 int flag);

XMLPUBFUN void
		    xmlRelaxNGFreeParserCtxt	(xmlRelaxNGParserCtxt *ctxt);
XMLPUBFUN void
		    xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxt *ctxt,
					 xmlRelaxNGValidityErrorFunc err,
					 xmlRelaxNGValidityWarningFunc warn,
					 void *ctx);
XMLPUBFUN int
		    xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxt *ctxt,
					 xmlRelaxNGValidityErrorFunc *err,
					 xmlRelaxNGValidityWarningFunc *warn,
					 void **ctx);
XMLPUBFUN void
		    xmlRelaxNGSetParserStructuredErrors(
					 xmlRelaxNGParserCtxt *ctxt,
					 xmlStructuredErrorFunc serror,
					 void *ctx);
XMLPUBFUN void
		    xmlRelaxNGSetResourceLoader	(xmlRelaxNGParserCtxt *ctxt,
						 xmlResourceLoader loader,
						 void *vctxt);
XMLPUBFUN xmlRelaxNG *
		    xmlRelaxNGParse		(xmlRelaxNGParserCtxt *ctxt);
XMLPUBFUN void
		    xmlRelaxNGFree		(xmlRelaxNG *schema);
#ifdef LIBXML_DEBUG_ENABLED
XMLPUBFUN void
		    xmlRelaxNGDump		(FILE *output,
					 xmlRelaxNG *schema);
#endif /* LIBXML_DEBUG_ENABLED */
#ifdef LIBXML_OUTPUT_ENABLED
XMLPUBFUN void
		    xmlRelaxNGDumpTree	(FILE * output,
					 xmlRelaxNG *schema);
#endif /* LIBXML_OUTPUT_ENABLED */
/*
 * Interfaces for validating
 */
XMLPUBFUN void
		    xmlRelaxNGSetValidErrors(xmlRelaxNGValidCtxt *ctxt,
					 xmlRelaxNGValidityErrorFunc err,
					 xmlRelaxNGValidityWarningFunc warn,
					 void *ctx);
XMLPUBFUN int
		    xmlRelaxNGGetValidErrors(xmlRelaxNGValidCtxt *ctxt,
					 xmlRelaxNGValidityErrorFunc *err,
					 xmlRelaxNGValidityWarningFunc *warn,
					 void **ctx);
XMLPUBFUN void
			xmlRelaxNGSetValidStructuredErrors(xmlRelaxNGValidCtxt *ctxt,
					  xmlStructuredErrorFunc serror, void *ctx);
XMLPUBFUN xmlRelaxNGValidCtxt *
		    xmlRelaxNGNewValidCtxt	(xmlRelaxNG *schema);
XMLPUBFUN void
		    xmlRelaxNGFreeValidCtxt	(xmlRelaxNGValidCtxt *ctxt);
XMLPUBFUN int
		    xmlRelaxNGValidateDoc	(xmlRelaxNGValidCtxt *ctxt,
						 xmlDoc *doc);
/*
 * Interfaces for progressive validation when possible
 */
XMLPUBFUN int
		    xmlRelaxNGValidatePushElement	(xmlRelaxNGValidCtxt *ctxt,
					 xmlDoc *doc,
					 xmlNode *elem);
XMLPUBFUN int
		    xmlRelaxNGValidatePushCData	(xmlRelaxNGValidCtxt *ctxt,
					 const xmlChar *data,
					 int len);
XMLPUBFUN int
		    xmlRelaxNGValidatePopElement	(xmlRelaxNGValidCtxt *ctxt,
					 xmlDoc *doc,
					 xmlNode *elem);
XMLPUBFUN int
		    xmlRelaxNGValidateFullElement	(xmlRelaxNGValidCtxt *ctxt,
					 xmlDoc *doc,
					 xmlNode *elem);
XMLPUBFUN void
                    xmlRelaxNGValidCtxtClearErrors(xmlRelaxNGValidCtxt* ctxt);

#ifdef __cplusplus
}
#endif

#endif /* LIBXML_RELAXNG_ENABLED */

#endif /* __XML_RELAX_NG__ */

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
HTMLparser.h
10.363 KB
19 Nov 2025 1.25 AM
root / root
0644
HTMLtree.h
2.637 KB
19 Nov 2025 1.25 AM
root / root
0644
SAX.h
0.386 KB
19 Nov 2025 1.25 AM
root / root
0644
SAX2.h
4.136 KB
19 Nov 2025 1.25 AM
root / root
0644
c14n.h
2.614 KB
19 Nov 2025 1.25 AM
root / root
0644
catalog.h
4.909 KB
19 Nov 2025 1.25 AM
root / root
0644
chvalid.h
4.708 KB
19 Nov 2025 1.25 AM
root / root
0644
debugXML.h
1.616 KB
19 Nov 2025 1.25 AM
root / root
0644
dict.h
1.738 KB
19 Nov 2025 1.25 AM
root / root
0644
encoding.h
9.632 KB
19 Nov 2025 1.25 AM
root / root
0644
entities.h
4.276 KB
19 Nov 2025 1.25 AM
root / root
0644
globals.h
0.577 KB
19 Nov 2025 1.25 AM
root / root
0644
hash.h
6.799 KB
19 Nov 2025 1.25 AM
root / root
0644
list.h
3.066 KB
19 Nov 2025 1.25 AM
root / root
0644
nanoftp.h
0.315 KB
19 Nov 2025 1.25 AM
root / root
0644
nanohttp.h
2.094 KB
19 Nov 2025 1.25 AM
root / root
0644
parser.h
58.893 KB
19 Nov 2025 1.25 AM
root / root
0644
parserInternals.h
13.524 KB
19 Nov 2025 1.25 AM
root / root
0644
pattern.h
2.542 KB
19 Nov 2025 1.25 AM
root / root
0644
relaxng.h
5.913 KB
19 Nov 2025 1.25 AM
root / root
0644
schemasInternals.h
22.715 KB
19 Nov 2025 1.25 AM
root / root
0644
schematron.h
4.159 KB
19 Nov 2025 1.25 AM
root / root
0644
threads.h
1.531 KB
19 Nov 2025 1.25 AM
root / root
0644
tree.h
39.3 KB
19 Nov 2025 1.25 AM
root / root
0644
uri.h
2.663 KB
19 Nov 2025 1.25 AM
root / root
0644
valid.h
11.609 KB
19 Nov 2025 1.25 AM
root / root
0644
xinclude.h
2.808 KB
19 Nov 2025 1.25 AM
root / root
0644
xlink.h
5.035 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlIO.h
11.322 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlautomata.h
3.798 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlerror.h
38.413 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlexports.h
2.357 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlmemory.h
4.932 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlmodule.h
1.131 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlreader.h
12.237 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlregexp.h
2.396 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlsave.h
3.395 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlschemas.h
6.768 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlschemastypes.h
4.436 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlstring.h
5.125 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlunicode.h
0.274 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlversion.h
3.9 KB
19 Nov 2025 1.25 AM
root / root
0644
xmlwriter.h
19.992 KB
19 Nov 2025 1.25 AM
root / root
0644
xpath.h
14.41 KB
19 Nov 2025 1.25 AM
root / root
0644
xpathInternals.h
17.359 KB
19 Nov 2025 1.25 AM
root / root
0644
xpointer.h
0.908 KB
19 Nov 2025 1.25 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF