2 * schemastypes.c : interface of the XML Schema Datatypes
3 * definition and validity checking
5 * See Copyright for the status of this software.
7 * Daniel Veillard <veillard@redhat.com>
11 #ifndef __XML_SCHEMA_TYPES_H__
12 #define __XML_SCHEMA_TYPES_H__
14 #include <libxml/xmlversion.h>
16 #ifdef LIBXML_SCHEMAS_ENABLED
18 #include <libxml/schemasInternals.h>
19 #include <libxml/xmlschemas.h>
25 void xmlSchemaInitTypes (void);
26 void xmlSchemaCleanupTypes (void);
27 xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar *name,
29 int xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
31 xmlSchemaValPtr *val);
32 int xmlSchemaValPredefTypeNode (xmlSchemaTypePtr type,
36 int xmlSchemaValidateFacet (xmlSchemaTypePtr base,
37 xmlSchemaFacetPtr facet,
40 void xmlSchemaFreeValue (xmlSchemaValPtr val);
41 xmlSchemaFacetPtr xmlSchemaNewFacet (void);
42 int xmlSchemaCheckFacet (xmlSchemaFacetPtr facet,
43 xmlSchemaTypePtr typeDecl,
44 xmlSchemaParserCtxtPtr ctxt,
46 void xmlSchemaFreeFacet (xmlSchemaFacetPtr facet);
47 int xmlSchemaCompareValues (xmlSchemaValPtr x,
54 #endif /* LIBXML_SCHEMAS_ENABLED */
55 #endif /* __XML_SCHEMA_TYPES_H__ */