Blame doc/html/libxml-xmlschemas.html

Packit Service a31ea6
Packit Service a31ea6
Packit Service a31ea6
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
Packit Service a31ea6
TD {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
Packit Service a31ea6
H1 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H2 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H3 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
A:link, A:visited, A:active { text-decoration: underline }
Packit Service a31ea6
</style><style type="text/css">
Packit Service a31ea6
      div.deprecated pre.programlisting {border-style: double;border-color:red}
Packit Service a31ea6
      pre.programlisting {border-style: double;background: #EECFA1}
Packit Service a31ea6
    </style><title>Module xmlschemas from libxml2</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module xmlschemas from libxml2

<center>API Menu</center>
<form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form>
<center>API Indexes</center>
<center>Related links</center>

interface to the XML Schemas handling and schema validity checking, it is incomplete right now.

Table of Contents

Structure xmlSchema
struct _xmlSchema
Packit Service a31ea6
Structure xmlSchemaParserCtxt
struct _xmlSchemaParserCtxt
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Typedef xmlSchemaParserCtxt * xmlSchemaParserCtxtPtr
Packit Service a31ea6
Typedef xmlSchema * xmlSchemaPtr
Packit Service a31ea6
Typedef xmlSchemaSAXPlugStruct * xmlSchemaSAXPlugPtr
Packit Service a31ea6
Structure xmlSchemaSAXPlugStruct
struct _xmlSchemaSAXPlug
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Structure xmlSchemaValidCtxt
struct _xmlSchemaValidCtxt
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Typedef xmlSchemaValidCtxt * xmlSchemaValidCtxtPtr
Packit Service a31ea6
Enum xmlSchemaValidError
Packit Service a31ea6
Enum xmlSchemaValidOption
Packit Service a31ea6
void	xmlSchemaDump			(FILE * output, 
xmlSchemaPtr schema)
Packit Service a31ea6
void	xmlSchemaFree			(xmlSchemaPtr schema)
Packit Service a31ea6
void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
Packit Service a31ea6
void	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6
int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
Packit Service a31ea6
int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
Packit Service a31ea6
int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6
xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
Packit Service a31ea6
xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, 
int size)
Packit Service a31ea6
xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
Packit Service a31ea6
xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
Packit Service a31ea6
xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
Packit Service a31ea6
xmlSchemaSAXPlugPtr	xmlSchemaSAXPlug	(xmlSchemaValidCtxtPtr ctxt, 
xmlSAXHandlerPtr * sax,
void ** user_data)
Packit Service a31ea6
int	xmlSchemaSAXUnplug		(xmlSchemaSAXPlugPtr plug)
Packit Service a31ea6
void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
Packit Service a31ea6
void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6
void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
Packit Service a31ea6
int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
int options)
Packit Service a31ea6
void	xmlSchemaSetValidStructuredErrors	(xmlSchemaValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6
int	xmlSchemaValidCtxtGetOptions	(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6
xmlParserCtxtPtr	xmlSchemaValidCtxtGetParserCtxt	(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6
int	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, 
xmlDocPtr doc)
Packit Service a31ea6
int	xmlSchemaValidateFile		(xmlSchemaValidCtxtPtr ctxt, 
const char * filename,
int options)
Packit Service a31ea6
int	xmlSchemaValidateOneElement	(xmlSchemaValidCtxtPtr ctxt, 
xmlNodePtr elem)
Packit Service a31ea6
void	xmlSchemaValidateSetFilename	(xmlSchemaValidCtxtPtr vctxt, 
const char * filename)
Packit Service a31ea6
void	xmlSchemaValidateSetLocator	(xmlSchemaValidCtxtPtr vctxt, 
xmlSchemaValidityLocatorFunc f,
void * ctxt)
Packit Service a31ea6
int	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, 
xmlParserInputBufferPtr input,
xmlCharEncoding enc,
xmlSAXHandlerPtr sax,
void * user_data)
Packit Service a31ea6
Function type: xmlSchemaValidityErrorFunc
Packit Service a31ea6
void	xmlSchemaValidityErrorFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6
Packit Service a31ea6
Function type: xmlSchemaValidityLocatorFunc
Packit Service a31ea6
int	xmlSchemaValidityLocatorFunc	(void * ctx, 
const char ** file,
unsigned long * line)
Packit Service a31ea6
Packit Service a31ea6
Function type: xmlSchemaValidityWarningFunc
Packit Service a31ea6
void	xmlSchemaValidityWarningFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6
Packit Service a31ea6

Description

Packit Service a31ea6

Structure xmlSchema

Structure xmlSchema
struct _xmlSchema {
Packit Service a31ea6
    const xmlChar *	name	: schema name
Packit Service a31ea6
    const xmlChar *	targetNamespace	: the target namespace
Packit Service a31ea6
    const xmlChar *	version
Packit Service a31ea6
    const xmlChar *	id	: Obsolete
Packit Service a31ea6
    xmlDocPtr	doc
Packit Service a31ea6
    xmlSchemaAnnotPtr	annot
Packit Service a31ea6
    int	flags
Packit Service a31ea6
    xmlHashTablePtr	typeDecl
Packit Service a31ea6
    xmlHashTablePtr	attrDecl
Packit Service a31ea6
    xmlHashTablePtr	attrgrpDecl
Packit Service a31ea6
    xmlHashTablePtr	elemDecl
Packit Service a31ea6
    xmlHashTablePtr	notaDecl
Packit Service a31ea6
    xmlHashTablePtr	schemasImports
Packit Service a31ea6
    void *	_private	: unused by the library for users or bind
Packit Service a31ea6
    xmlHashTablePtr	groupDecl
Packit Service a31ea6
    xmlDictPtr	dict
Packit Service a31ea6
    void *	includes	: the includes, this is opaque for now
Packit Service a31ea6
    int	preserve	: whether to free the document
Packit Service a31ea6
    int	counter	: used to give ononymous components uniqu
Packit Service a31ea6
    xmlHashTablePtr	idcDef	: All identity-constraint defs.
Packit Service a31ea6
    void *	volatiles	: Obsolete
Packit Service a31ea6
}

Structure xmlSchemaParserCtxt

Structure xmlSchemaParserCtxt
struct _xmlSchemaParserCtxt {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Structure xmlSchemaSAXPlugStruct

Structure xmlSchemaSAXPlugStruct
struct _xmlSchemaSAXPlug {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Structure xmlSchemaValidCtxt

Structure xmlSchemaValidCtxt
struct _xmlSchemaValidCtxt {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Enum xmlSchemaValidError

Enum xmlSchemaValidError {
Packit Service a31ea6
    XML_SCHEMAS_ERR_OK = 0
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOROOT = 1
Packit Service a31ea6
    XML_SCHEMAS_ERR_UNDECLAREDELEM = 2
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTTOPLEVEL = 3
Packit Service a31ea6
    XML_SCHEMAS_ERR_MISSING = 4
Packit Service a31ea6
    XML_SCHEMAS_ERR_WRONGELEM = 5
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTYPE = 6
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOROLLBACK = 7
Packit Service a31ea6
    XML_SCHEMAS_ERR_ISABSTRACT = 8
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTEMPTY = 9
Packit Service a31ea6
    XML_SCHEMAS_ERR_ELEMCONT = 10
Packit Service a31ea6
    XML_SCHEMAS_ERR_HAVEDEFAULT = 11
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTNILLABLE = 12
Packit Service a31ea6
    XML_SCHEMAS_ERR_EXTRACONTENT = 13
Packit Service a31ea6
    XML_SCHEMAS_ERR_INVALIDATTR = 14
Packit Service a31ea6
    XML_SCHEMAS_ERR_INVALIDELEM = 15
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTDETERMINIST = 16
Packit Service a31ea6
    XML_SCHEMAS_ERR_CONSTRUCT = 17
Packit Service a31ea6
    XML_SCHEMAS_ERR_INTERNAL = 18
Packit Service a31ea6
    XML_SCHEMAS_ERR_NOTSIMPLE = 19
Packit Service a31ea6
    XML_SCHEMAS_ERR_ATTRUNKNOWN = 20
Packit Service a31ea6
    XML_SCHEMAS_ERR_ATTRINVALID = 21
Packit Service a31ea6
    XML_SCHEMAS_ERR_VALUE = 22
Packit Service a31ea6
    XML_SCHEMAS_ERR_FACET = 23
Packit Service a31ea6
    XML_SCHEMAS_ERR_ = 24
Packit Service a31ea6
    XML_SCHEMAS_ERR_XXX = 25
Packit Service a31ea6
}
Packit Service a31ea6

Enum xmlSchemaValidOption

Enum xmlSchemaValidOption {
Packit Service a31ea6
    XML_SCHEMA_VAL_VC_I_CREATE = 1 : Default/fixed: create an attribute node * or an element's text node on the instance. *
Packit Service a31ea6
}
Packit Service a31ea6

Function: xmlSchemaDump

void	xmlSchemaDump			(FILE * output, 
xmlSchemaPtr schema)
Packit Service a31ea6

Dump a Schema structure.

Packit Service a31ea6
<tt>output</tt>:the file output
<tt>schema</tt>:a schema structure

Function: xmlSchemaFree

void	xmlSchemaFree			(xmlSchemaPtr schema)
Packit Service a31ea6

Deallocate a Schema structure.

Packit Service a31ea6
<tt>schema</tt>:a schema structure

Function: xmlSchemaFreeParserCtxt

void	xmlSchemaFreeParserCtxt		(xmlSchemaParserCtxtPtr ctxt)
Packit Service a31ea6

Free the resources associated to the schema parser context

Packit Service a31ea6
<tt>ctxt</tt>:the schema parser context

Function: xmlSchemaFreeValidCtxt

void	xmlSchemaFreeValidCtxt		(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6

Free the resources associated to the schema validation context

Packit Service a31ea6
<tt>ctxt</tt>:the schema validation context

Function: xmlSchemaGetParserErrors

int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
Packit Service a31ea6

Get the callback information used to handle errors for a parser context

Packit Service a31ea6
<tt>ctxt</tt>:a XMl-Schema parser context
<tt>err</tt>:the error callback result
<tt>warn</tt>:the warning callback result
<tt>ctx</tt>:contextual data for the callbacks result
<tt>Returns</tt>:-1 in case of failure, 0 otherwise

Function: xmlSchemaGetValidErrors

int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
Packit Service a31ea6

Get the error and warning callback informations

Packit Service a31ea6
<tt>ctxt</tt>:a XML-Schema validation context
<tt>err</tt>:the error function result
<tt>warn</tt>:the warning function result
<tt>ctx</tt>:the functions context result
<tt>Returns</tt>:-1 in case of error and 0 otherwise

Function: xmlSchemaIsValid

int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6

Check if any error was detected during validation.

Packit Service a31ea6
<tt>ctxt</tt>:the schema validation context
<tt>Returns</tt>:1 if valid so far, 0 if errors were detected, and -1 in case of internal error.

Function: xmlSchemaNewDocParserCtxt

xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
Packit Service a31ea6

Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process.

Packit Service a31ea6
<tt>doc</tt>:a preparsed document tree
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchemaNewMemParserCtxt

xmlSchemaParserCtxtPtr	xmlSchemaNewMemParserCtxt	(const char * buffer, 
int size)
Packit Service a31ea6

Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.

Packit Service a31ea6
<tt>buffer</tt>:a pointer to a char array containing the schemas
<tt>size</tt>:the size of the array
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchemaNewParserCtxt

xmlSchemaParserCtxtPtr	xmlSchemaNewParserCtxt	(const char * URL)
Packit Service a31ea6

Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.

Packit Service a31ea6
<tt>URL</tt>:the location of the schema
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchemaNewValidCtxt

xmlSchemaValidCtxtPtr	xmlSchemaNewValidCtxt	(xmlSchemaPtr schema)
Packit Service a31ea6

Create an XML Schemas validation context based on the given schema.

Packit Service a31ea6
<tt>schema</tt>:a precompiled XML Schemas
<tt>Returns</tt>:the validation context or NULL in case of error

Function: xmlSchemaParse

xmlSchemaPtr	xmlSchemaParse		(xmlSchemaParserCtxtPtr ctxt)
Packit Service a31ea6

parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>Returns</tt>:the internal XML Schema structure built from the resource or NULL in case of error

Function: xmlSchemaSAXPlug

xmlSchemaSAXPlugPtr	xmlSchemaSAXPlug	(xmlSchemaValidCtxtPtr ctxt, 
xmlSAXHandlerPtr * sax,
void ** user_data)
Packit Service a31ea6

Plug a SAX based validation layer in a SAX parsing event flow. The original @saxptr and @dataptr data are replaced by new pointers but the calls to the original will be maintained.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>sax</tt>:a pointer to the original xmlSAXHandlerPtr
<tt>user_data</tt>:a pointer to the original SAX user data pointer
<tt>Returns</tt>:a pointer to a data structure needed to unplug the validation layer or NULL in case of errors.

Function: xmlSchemaSAXUnplug

int	xmlSchemaSAXUnplug		(xmlSchemaSAXPlugPtr plug)
Packit Service a31ea6

Unplug a SAX based validation layer in a SAX parsing event flow. The original pointers used in the call are restored.

Packit Service a31ea6
<tt>plug</tt>:a data structure returned by xmlSchemaSAXPlug
<tt>Returns</tt>:0 in case of success and -1 in case of failure.

Function: xmlSchemaSetParserErrors

void	xmlSchemaSetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
Packit Service a31ea6

Set the callback functions used to handle errors for a validation context

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>err</tt>:the error callback
<tt>warn</tt>:the warning callback
<tt>ctx</tt>:contextual data for the callbacks

Function: xmlSchemaSetParserStructuredErrors

void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6

Set the structured error callback

Packit Service a31ea6
<tt>ctxt</tt>:a schema parser context
<tt>serror</tt>:the structured error function
<tt>ctx</tt>:the functions context

Function: xmlSchemaSetValidErrors

void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
Packit Service a31ea6

Set the error and warning callback informations

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>err</tt>:the error function
<tt>warn</tt>:the warning function
<tt>ctx</tt>:the functions context

Function: xmlSchemaSetValidOptions

int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
int options)
Packit Service a31ea6

Sets the options to be used during the validation.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>options</tt>:a combination of xmlSchemaValidOption
<tt>Returns</tt>:0 in case of success, -1 in case of an API error.

Function: xmlSchemaSetValidStructuredErrors

void	xmlSchemaSetValidStructuredErrors	(xmlSchemaValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6

Set the structured error callback

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>serror</tt>:the structured error function
<tt>ctx</tt>:the functions context

Function: xmlSchemaValidCtxtGetOptions

int	xmlSchemaValidCtxtGetOptions	(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6

Get the validation context options.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>Returns</tt>:the option combination or -1 on error.

Function: xmlSchemaValidCtxtGetParserCtxt

xmlParserCtxtPtr	xmlSchemaValidCtxtGetParserCtxt	(xmlSchemaValidCtxtPtr ctxt)
Packit Service a31ea6

allow access to the parser context of the schema validation context

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>Returns</tt>:the parser context of the schema validation context or NULL in case of error.

Function: xmlSchemaValidateDoc

int	xmlSchemaValidateDoc		(xmlSchemaValidCtxtPtr ctxt, 
xmlDocPtr doc)
Packit Service a31ea6

Validate a document tree in memory.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>doc</tt>:a parsed document tree
<tt>Returns</tt>:0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.

Function: xmlSchemaValidateFile

int	xmlSchemaValidateFile		(xmlSchemaValidCtxtPtr ctxt, 
const char * filename,
int options)
Packit Service a31ea6

Do a schemas validation of the given resource, it will use the SAX streamable validation internally.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>filename</tt>:the URI of the instance
<tt>options</tt>:a future set of options, currently unused
<tt>Returns</tt>:0 if the document is valid, a positive error code number otherwise and -1 in case of an internal or API error.

Function: xmlSchemaValidateOneElement

int	xmlSchemaValidateOneElement	(xmlSchemaValidCtxtPtr ctxt, 
xmlNodePtr elem)
Packit Service a31ea6

Validate a branch of a tree, starting with the given @elem.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>elem</tt>:an element node
<tt>Returns</tt>:0 if the element and its subtree is valid, a positive error code number otherwise and -1 in case of an internal or API error.

Function: xmlSchemaValidateSetFilename

void	xmlSchemaValidateSetFilename	(xmlSchemaValidCtxtPtr vctxt, 
const char * filename)
Packit Service a31ea6

Workaround to provide file error reporting information when this is not provided by current APIs

Packit Service a31ea6
<tt>vctxt</tt>:the schema validation context
<tt>filename</tt>:the file name

Function: xmlSchemaValidateSetLocator

void	xmlSchemaValidateSetLocator	(xmlSchemaValidCtxtPtr vctxt, 
xmlSchemaValidityLocatorFunc f,
void * ctxt)
Packit Service a31ea6

Allows to set a locator function to the validation context, which will be used to provide file and line information since those are not provided as part of the SAX validation flow Setting @f to NULL disable the locator.

Packit Service a31ea6
<tt>vctxt</tt>:a schema validation context
<tt>f</tt>:the locator function pointer
<tt>ctxt</tt>:the locator context

Function: xmlSchemaValidateStream

int	xmlSchemaValidateStream		(xmlSchemaValidCtxtPtr ctxt, 
xmlParserInputBufferPtr input,
xmlCharEncoding enc,
xmlSAXHandlerPtr sax,
void * user_data)
Packit Service a31ea6

Validate an input based on a flow of SAX event from the parser and forward the events to the @sax handler with the provided @user_data the user provided @sax handler must be a SAX2 one.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>input</tt>:the input to use for reading the data
<tt>enc</tt>:an optional encoding information
<tt>sax</tt>:a SAX handler for the resulting events
<tt>user_data</tt>:the context to provide to the SAX handler.
<tt>Returns</tt>:0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.

Function type: xmlSchemaValidityErrorFunc

Function type: xmlSchemaValidityErrorFunc
Packit Service a31ea6
void	xmlSchemaValidityErrorFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6

Signature of an error callback from an XSD validation

<tt>ctx</tt>:the validation context
<tt>msg</tt>:the message
<tt>...</tt>:extra arguments

Packit Service a31ea6

Function type: xmlSchemaValidityLocatorFunc

Function type: xmlSchemaValidityLocatorFunc
Packit Service a31ea6
int	xmlSchemaValidityLocatorFunc	(void * ctx, 
const char ** file,
unsigned long * line)
Packit Service a31ea6

A schemas validation locator, a callback called by the validator. This is used when file or node informations are not available to find out what file and line number are affected

<tt>ctx</tt>:user provided context
<tt>file</tt>:returned file information
<tt>line</tt>:returned line information
<tt>Returns</tt>:0 in case of success and -1 in case of error

Packit Service a31ea6

Function type: xmlSchemaValidityWarningFunc

Function type: xmlSchemaValidityWarningFunc
Packit Service a31ea6
void	xmlSchemaValidityWarningFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6

Signature of a warning callback from an XSD validation

<tt>ctx</tt>:the validation context
<tt>msg</tt>:the message
<tt>...</tt>:extra arguments

Packit Service a31ea6

Daniel Veillard

</body></html>