Gnome XML Library Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# xmlschemastypes

## Name

xmlschemastypes --

## Synopsis

    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);

## Description

## Details

### xmlSchemaInitTypes ()

    void        xmlSchemaInitTypes              (void);

### xmlSchemaCleanupTypes ()

    void        xmlSchemaCleanupTypes           (void);

Cleanup the default XML Schemas type library

### xmlSchemaGetPredefinedType ()

    xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar *name,
                                                 const xmlChar *ns);

Lookup a type in the default XML Schemas type library

`name` : | the type name
`ns` : | the URI of the namespace usually "http://www.w3.org/2001/XMLSchema"
Returns : | the type if found, NULL otherwise

### xmlSchemaValidatePredefinedType ()

    int         xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
                                                 const xmlChar *value,
                                                 xmlSchemaValPtr *val);

Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in `val`.

`type` : | the predefined type
`value` : | the value to check
`val` : | the return computed value
Returns : | 0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

### xmlSchemaValidateFacet ()

    int         xmlSchemaValidateFacet          (xmlSchemaTypePtr base,
                                                 xmlSchemaFacetPtr facet,
                                                 const xmlChar *value,
                                                 xmlSchemaValPtr val);

Check a value against a facet condition

`base` : |
`facet` : | the facet to check
`value` : | the lexical repr of the value to validate
`val` : | the precomputed value
Returns : | 0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.

### xmlSchemaFreeValue ()

    void        xmlSchemaFreeValue              (xmlSchemaValPtr val);

Cleanup the default XML Schemas type library

`val` : |

<<< Previous Page | Home | Up | Next Page >>>
xmlschemas | schemasInternals