| interface to the XML Schemas handling and schema validity checking, it is incomplete right now.  Table of ContentsStructure xmlSchemastruct _xmlSchema
 Structure xmlSchemaParserCtxtstruct _xmlSchemaParserCtxt
The content of this structure is not made public by the API.
 Typedef xmlSchemaParserCtxt * xmlSchemaParserCtxtPtr
 Typedef xmlSchema * xmlSchemaPtr
 Structure xmlSchemaValidCtxtstruct _xmlSchemaValidCtxt
The content of this structure is not made public by the API.
 Typedef xmlSchemaValidCtxt * xmlSchemaValidCtxtPtr
 Enum xmlSchemaValidError
 void	xmlSchemaDump			(FILE * output, xmlSchemaPtr schema)
 void	xmlSchemaFree			(xmlSchemaPtr schema) void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt) void	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt) xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc) xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, int size)
 xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL) xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema) xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt) void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, xmlSchemaValidityErrorFunc err,
 xmlSchemaValidityWarningFunc warn,
 void * ctx)
 void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, xmlSchemaValidityErrorFunc err,
 xmlSchemaValidityWarningFunc warn,
 void * ctx)
 int	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, xmlDocPtr doc)
 int	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, xmlParserInputBufferPtr input,
 xmlCharEncoding enc,
 xmlSAXHandlerPtr sax,
 void * user_data)
 Function type: xmlSchemaValidityErrorFunc
void	xmlSchemaValidityErrorFunc	(void * ctx, const char * msg,
 ... ...)
 Function type: xmlSchemaValidityWarningFunc
void	xmlSchemaValidityWarningFunc	(void * ctx, const char * msg,
 ... ...)
 DescriptionStructure xmlSchemastruct _xmlSchema {
    const xmlChar *	name	: schema name
    const xmlChar *	targetNamespace	: the target namespace
    const xmlChar *	version
    const xmlChar *	id
    xmlDocPtr	doc
    xmlSchemaAnnotPtr	annot
    int	flags
    xmlHashTablePtr	typeDecl
    xmlHashTablePtr	attrDecl
    xmlHashTablePtr	attrgrpDecl
    xmlHashTablePtr	elemDecl
    xmlHashTablePtr	notaDecl
    xmlHashTablePtr	schemasImports
    void *	_private	: unused by the library for users or bind
    xmlHashTablePtr	groupDecl
    xmlDictPtr	dict
    void *	includes	: the includes, this is opaque for now
}
 Structure xmlSchemaParserCtxtstruct _xmlSchemaParserCtxt {
The content of this structure is not made public by the API.
}
 Structure xmlSchemaValidCtxtstruct _xmlSchemaValidCtxt {
The content of this structure is not made public by the API.
}
 Enum xmlSchemaValidError {
    XML_SCHEMAS_ERR_OK = 0
    XML_SCHEMAS_ERR_NOROOT = 1
    XML_SCHEMAS_ERR_UNDECLAREDELEM = 2
    XML_SCHEMAS_ERR_NOTTOPLEVEL = 3
    XML_SCHEMAS_ERR_MISSING = 4
    XML_SCHEMAS_ERR_WRONGELEM = 5
    XML_SCHEMAS_ERR_NOTYPE = 6
    XML_SCHEMAS_ERR_NOROLLBACK = 7
    XML_SCHEMAS_ERR_ISABSTRACT = 8
    XML_SCHEMAS_ERR_NOTEMPTY = 9
    XML_SCHEMAS_ERR_ELEMCONT = 10
    XML_SCHEMAS_ERR_HAVEDEFAULT = 11
    XML_SCHEMAS_ERR_NOTNILLABLE = 12
     = 13
    XML_SCHEMAS_ERR_INVALIDATTR = 14
    XML_SCHEMAS_ERR_INVALIDELEM = 15
    XML_SCHEMAS_ERR_NOTDETERMINIST = 16
    XML_SCHEMAS_ERR_CONSTRUCT = 17
    XML_SCHEMAS_ERR_INTERNAL = 18
    XML_SCHEMAS_ERR_NOTSIMPLE = 19
    XML_SCHEMAS_ERR_ATTRUNKNOWN = 20
    XML_SCHEMAS_ERR_ATTRINVALID = 21
    XML_SCHEMAS_ERR_VALUE = 22
    XML_SCHEMAS_ERR_FACET = 23
    XML_SCHEMAS_ERR_ = 24
    XML_SCHEMAS_ERR_XXX = 25
}
Function: xmlSchemaDumpvoid	xmlSchemaDump			(FILE * output, xmlSchemaPtr schema)
 
 Dump a Schema structure. | output: | the file output |  | schema: | a schema structure | 
Function: xmlSchemaFreevoid	xmlSchemaFree			(xmlSchemaPtr schema)
 Deallocate a Schema structure. | schema: | a schema structure | 
Function: xmlSchemaFreeParserCtxtvoid	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
 Free the resources associated to the schema parser context | ctxt: | the schema parser context | 
Function: xmlSchemaFreeValidCtxtvoid	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt)
 Free the resources associated to the schema validation context | ctxt: | the schema validation context | 
Function: xmlSchemaNewDocParserCtxtxmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
 Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. | doc: | a preparsed document tree |  | Returns: | the parser context or NULL in case of error | 
Function: xmlSchemaNewMemParserCtxtxmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, int size)
 
 Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. | buffer: | a pointer to a char array containing the schemas |  | size: | the size of the array |  | Returns: | the parser context or NULL in case of error | 
Function: xmlSchemaNewParserCtxtxmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
 Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. | URL: | the location of the schema |  | Returns: | the parser context or NULL in case of error | 
Function: xmlSchemaNewValidCtxtxmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
 Create an XML Schemas validation context based on the given schema | schema: | a precompiled XML Schemas |  | Returns: | the validation context or NULL in case of error | 
Function: xmlSchemaParsexmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
 parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. *WARNING* this interface is highly subject to change | ctxt: | a schema validation context |  | Returns: | the internal XML Schema structure built from the resource or NULL in case of error | 
Function: xmlSchemaSetParserErrorsvoid	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, xmlSchemaValidityErrorFunc err,
 xmlSchemaValidityWarningFunc warn,
 void * ctx)
 
 Set the callback functions used to handle errors for a validation context | ctxt: | a schema validation context |  | err: | the error callback |  | warn: | the warning callback |  | ctx: | contextual data for the callbacks | 
Function: xmlSchemaSetValidErrorsvoid	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, xmlSchemaValidityErrorFunc err,
 xmlSchemaValidityWarningFunc warn,
 void * ctx)
 
 Set the error and warning callback informations | ctxt: | a schema validation context |  | err: | the error function |  | warn: | the warning function |  | ctx: | the functions context | 
Function: xmlSchemaValidateDocint	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, xmlDocPtr doc)
 
 Validate a document tree in memory. | ctxt: | a schema validation context |  | doc: | a parsed document tree |  | Returns: | 0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error. | 
Function: xmlSchemaValidateStreamint	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, xmlParserInputBufferPtr input,
 xmlCharEncoding enc,
 xmlSAXHandlerPtr sax,
 void * user_data)
 
 Validate a document tree in memory. | ctxt: | a schema validation context |  | input: | the input to use for reading the data |  | enc: | an optional encoding information |  | sax: | a SAX handler for the resulting events |  | user_data: | the context to provide to the SAX handler. |  | Returns: | 0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error. | 
Function type: xmlSchemaValidityErrorFuncFunction type: xmlSchemaValidityErrorFunc
void	xmlSchemaValidityErrorFunc	(void * ctx, const char * msg,
 ... ...)
 
 Function type: xmlSchemaValidityWarningFuncFunction type: xmlSchemaValidityWarningFunc
void	xmlSchemaValidityWarningFunc	(void * ctx, const char * msg,
 ... ...)
 
 Daniel Veillard |