mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
* relaxng.c xmlschemas.c xmlschemastypes.c include/libxml/xmlschemastypes.h: added param support for relaxng type checking, started to increment the pool of simple types registered, still much work to be done on simple types and facets checkings. Daniel
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
/*
|
|
* schemastypes.c : interface of the XML Schema Datatypes
|
|
* definition and validity checking
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* Daniel Veillard <veillard@redhat.com>
|
|
*/
|
|
|
|
|
|
#ifndef __XML_SCHEMA_TYPES_H__
|
|
#define __XML_SCHEMA_TYPES_H__
|
|
|
|
#include <libxml/xmlversion.h>
|
|
|
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
|
|
|
#include <libxml/schemasInternals.h>
|
|
#include <libxml/xmlschemas.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void xmlSchemaInitTypes (void);
|
|
void xmlSchemaCleanupTypes (void);
|
|
xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar *name,
|
|
const xmlChar *ns);
|
|
int xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
|
|
const xmlChar *value,
|
|
xmlSchemaValPtr *val);
|
|
int xmlSchemaValidateFacet (xmlSchemaTypePtr base,
|
|
xmlSchemaFacetPtr facet,
|
|
const xmlChar *value,
|
|
xmlSchemaValPtr val);
|
|
void xmlSchemaFreeValue (xmlSchemaValPtr val);
|
|
xmlSchemaFacetPtr xmlSchemaNewFacet (void);
|
|
int xmlSchemaCheckFacet (xmlSchemaFacetPtr facet,
|
|
xmlSchemaTypePtr typeDecl,
|
|
xmlSchemaParserCtxtPtr ctxt,
|
|
const xmlChar *name);
|
|
void xmlSchemaFreeFacet (xmlSchemaFacetPtr facet);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* LIBXML_SCHEMAS_ENABLED */
|
|
#endif /* __XML_SCHEMA_TYPES_H__ */
|