http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module xmlschemas from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
Related links
http://mail.gnome.org/archives/xml/
Mail archive
http://xmlsoft.org/XSLT/
XSLT libxslt
http://phd.cs.unibo.it/gdome2/
DOM gdome2
http://www.aleksey.com/xmlsec/
XML-DSig xmlsec
ftp://xmlsoft.org/
FTP
http://www.zlatkovic.com/projects/libxml/
Windows binaries
http://www.blastwave.org/packages.php/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP bindings
http://sourceforge.net/projects/libxml2-pas/
Pascal bindings
http://rubyforge.org/projects/xml-tools/
Ruby bindings
http://tclxml.sourceforge.net/
Tcl bindings
http://bugzilla.gnome.org/buglist.cgi?product=libxml2
Bug Tracker
libxml-xmlsave.html
Prev
libxml-xmlsave.html
xmlsave
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-xmlschemastypes.html
xmlschemastypes
libxml-xmlschemastypes.html
Next
interface to the XML Schemas handling and schema validity checking, it is incomplete right now.
Table of Contents
Structure
#xmlSchema
xmlSchema
struct _xmlSchema
Structure
#xmlSchemaParserCtxt
xmlSchemaParserCtxt
struct _xmlSchemaParserCtxt
The content of this structure is not made public by the API.
Typedef
libxml-xmlschemas.html#xmlSchemaParserCtxt
xmlSchemaParserCtxt
*
xmlSchemaParserCtxtPtr
Typedef
libxml-xmlschemas.html#xmlSchema
xmlSchema
*
xmlSchemaPtr
Typedef
libxml-xmlschemas.html#xmlSchemaSAXPlugStruct
xmlSchemaSAXPlugStruct
*
xmlSchemaSAXPlugPtr
Structure
#xmlSchemaSAXPlugStruct
xmlSchemaSAXPlugStruct
struct _xmlSchemaSAXPlug
The content of this structure is not made public by the API.
Structure
#xmlSchemaValidCtxt
xmlSchemaValidCtxt
struct _xmlSchemaValidCtxt
The content of this structure is not made public by the API.
Typedef
libxml-xmlschemas.html#xmlSchemaValidCtxt
xmlSchemaValidCtxt
*
xmlSchemaValidCtxtPtr
Enum
#xmlSchemaValidError
xmlSchemaValidError
Enum
#xmlSchemaValidOption
xmlSchemaValidOption
void
#xmlSchemaDump
xmlSchemaDump
(FILE * output,
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
schema)
void
#xmlSchemaFree
xmlSchemaFree
(
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
schema)
void
#xmlSchemaFreeParserCtxt
xmlSchemaFreeParserCtxt
(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt)
void
#xmlSchemaFreeValidCtxt
xmlSchemaFreeValidCtxt
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
int
#xmlSchemaGetParserErrors
xmlSchemaGetParserErrors
(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
* err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
* warn,
void ** ctx)
int
#xmlSchemaGetValidErrors
xmlSchemaGetValidErrors
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
* err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
* warn,
void ** ctx)
int
#xmlSchemaIsValid
xmlSchemaIsValid
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
#xmlSchemaNewDocParserCtxt
xmlSchemaNewDocParserCtxt
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
#xmlSchemaNewMemParserCtxt
xmlSchemaNewMemParserCtxt
(const char * buffer,
int size)
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
#xmlSchemaNewParserCtxt
xmlSchemaNewParserCtxt
(const char * URL)
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
#xmlSchemaNewValidCtxt
xmlSchemaNewValidCtxt
(
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
schema)
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
#xmlSchemaParse
xmlSchemaParse
(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt)
libxml-xmlschemas.html#xmlSchemaSAXPlugPtr
xmlSchemaSAXPlugPtr
#xmlSchemaSAXPlug
xmlSchemaSAXPlug
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
* sax,
void ** user_data)
int
#xmlSchemaSAXUnplug
xmlSchemaSAXUnplug
(
libxml-xmlschemas.html#xmlSchemaSAXPlugPtr
xmlSchemaSAXPlugPtr
plug)
void
#xmlSchemaSetParserErrors
xmlSchemaSetParserErrors
(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
warn,
void * ctx)
void
#xmlSchemaSetValidErrors
xmlSchemaSetValidErrors
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
warn,
void * ctx)
int
#xmlSchemaSetValidOptions
xmlSchemaSetValidOptions
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
int options)
void
#xmlSchemaSetValidStructuredErrors
xmlSchemaSetValidStructuredErrors
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlerror.html#xmlStructuredErrorFunc
xmlStructuredErrorFunc
serror,
void * ctx)
int
#xmlSchemaValidCtxtGetOptions
xmlSchemaValidCtxtGetOptions
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
int
#xmlSchemaValidateDoc
xmlSchemaValidateDoc
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
int
#xmlSchemaValidateFile
xmlSchemaValidateFile
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
const char * filename,
int options)
int
#xmlSchemaValidateOneElement
xmlSchemaValidateOneElement
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
int
#xmlSchemaValidateStream
xmlSchemaValidateStream
(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data)
Function type:
#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
void
#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
(void * ctx,
const char * msg,
... ...)
Function type:
#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
void
#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
(void * ctx,
const char * msg,
... ...)
Description
Structure xmlSchema
Structure xmlSchema
struct _xmlSchema {
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: schema name
const
libxml-xmlstring.html#xmlChar
xmlChar
*	targetNamespace	: the target namespace
const
libxml-xmlstring.html#xmlChar
xmlChar
*	version
const
libxml-xmlstring.html#xmlChar
xmlChar
*	id
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc
libxml-schemasInternals.html#xmlSchemaAnnotPtr
xmlSchemaAnnotPtr
annot
int	flags
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
typeDecl
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
attrDecl
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
attrgrpDecl
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
elemDecl
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
notaDecl
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
schemasImports
void *	_private	: unused by the library for users or bind
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
groupDecl
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict
void *	includes	: the includes, this is opaque for now
int	preserve	: whether to free the document
int	counter	: used to give ononymous components uniqu
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
idcDef
void *	volatiles	: Misc. helper items (e.g.
libxml-SAX.html#reference
reference
item
}
Structure xmlSchemaParserCtxt
Structure xmlSchemaParserCtxt
struct _xmlSchemaParserCtxt {
The content of this structure is not made public by the API.
}
Structure xmlSchemaSAXPlugStruct
Structure xmlSchemaSAXPlugStruct
struct _xmlSchemaSAXPlug {
The content of this structure is not made public by the API.
}
Structure xmlSchemaValidCtxt
Structure xmlSchemaValidCtxt
struct _xmlSchemaValidCtxt {
The content of this structure is not made public by the API.
}
Enum
xmlSchemaValidError
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
XML_SCHEMAS_ERR_EXTRACONTENT
= 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
}
Enum
xmlSchemaValidOption
Enum xmlSchemaValidOption {
XML_SCHEMA_VAL_VC_I_CREATE
= 1 : Default/fixed: create an
libxml-SAX.html#attribute
attribute
node * or an element's text node on the instance. *
}
Function: xmlSchemaDump
void	xmlSchemaDump			(FILE * output,
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
schema)
Dump a Schema structure.
output
:
the file output
schema
:
a schema structure
Function: xmlSchemaFree
void	xmlSchemaFree			(
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
schema)
Deallocate a Schema structure.
schema
:
a schema structure
Function: xmlSchemaFreeParserCtxt
void	xmlSchemaFreeParserCtxt		(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt)
Free the resources associated to the schema parser context
ctxt
:
the schema parser context
Function: xmlSchemaFreeValidCtxt
void	xmlSchemaFreeValidCtxt		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
Free the resources associated to the schema validation context
ctxt
:
the schema validation context
Function: xmlSchemaGetParserErrors
int	xmlSchemaGetParserErrors	(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
* err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
* warn,
void ** ctx)
Get the callback information used to handle errors for a parser context
ctxt
:
a XMl-Schema parser context
err
:
the error callback result
warn
:
the warning callback result
ctx
:
contextual data for the callbacks result
Returns
:
-1 in case of failure, 0 otherwise
Function: xmlSchemaGetValidErrors
int	xmlSchemaGetValidErrors		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
* err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
xmlSchemaValidityWarningFunc
* warn,
void ** ctx)
Get the error and warning callback informations
ctxt
:
a XML-Schema validation context
err
:
the error function result
warn
:
the warning function result
ctx
:
the functions context result
Returns
:
-1 in case of error and 0 otherwise
Function: xmlSchemaIsValid
int	xmlSchemaIsValid		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
Check if any error was detected during validation.
ctxt
:
the schema validation context
Returns
:
1 if valid so far, 0 if errors were detected, and -1 in case of internal error.
Function: xmlSchemaNewDocParserCtxt
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
xmlSchemaNewDocParserCtxt	(
libxml-tree.html#xmlDocPtr
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: xmlSchemaNewMemParserCtxt
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
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: xmlSchemaNewParserCtxt
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
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: xmlSchemaNewValidCtxt
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
xmlSchemaNewValidCtxt	(
libxml-xmlschemas.html#xmlSchemaPtr
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: xmlSchemaParse
libxml-xmlschemas.html#xmlSchemaPtr
xmlSchemaPtr
xmlSchemaParse		(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
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: xmlSchemaSAXPlug
libxml-xmlschemas.html#xmlSchemaSAXPlugPtr
xmlSchemaSAXPlugPtr
xmlSchemaSAXPlug	(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
* sax,
void ** user_data)
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.
ctxt
:
a schema validation context
sax
:
a pointer to the original
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
user_data
:
a pointer to the original SAX user data pointer
Returns
:
a pointer to a data structure needed to unplug the validation layer or NULL in case of errors.
Function: xmlSchemaSAXUnplug
int	xmlSchemaSAXUnplug		(
libxml-xmlschemas.html#xmlSchemaSAXPlugPtr
xmlSchemaSAXPlugPtr
plug)
Unplug a SAX based validation layer in a SAX parsing event flow. The original pointers used in the call are restored.
plug
:
a data structure returned by
libxml-xmlschemas.html#xmlSchemaSAXPlug
xmlSchemaSAXPlug
Returns
:
0 in case of success and -1 in case of failure.
Function: xmlSchemaSetParserErrors
void	xmlSchemaSetParserErrors	(
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
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: xmlSchemaSetValidErrors
void	xmlSchemaSetValidErrors		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlschemas.html#xmlSchemaValidityErrorFunc
xmlSchemaValidityErrorFunc
err,
libxml-xmlschemas.html#xmlSchemaValidityWarningFunc
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: xmlSchemaSetValidOptions
int	xmlSchemaSetValidOptions	(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
int options)
Sets the options to be used during the validation.
ctxt
:
a schema validation context
options
:
a combination of
libxml-xmlschemas.html#xmlSchemaValidOption
xmlSchemaValidOption
Returns
:
0 in case of success, -1 in case of an API error.
Function: xmlSchemaSetValidStructuredErrors
void	xmlSchemaSetValidStructuredErrors	(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-xmlerror.html#xmlStructuredErrorFunc
xmlStructuredErrorFunc
serror,
void * ctx)
Set the structured error callback
ctxt
:
a schema validation context
serror
:
the structured error function
ctx
:
the functions context
Function: xmlSchemaValidCtxtGetOptions
int	xmlSchemaValidCtxtGetOptions	(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt)
Get the validation context options.
ctxt
:
a schema validation context
Returns
:
the option combination or -1 on error.
Function: xmlSchemaValidateDoc
int	xmlSchemaValidateDoc		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
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: xmlSchemaValidateFile
int	xmlSchemaValidateFile		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
const char * filename,
int options)
Do a schemas validation of the given resource, it will use the SAX streamable validation internally.
ctxt
:
a schema validation context
filename
:
the URI of the instance
options
:
a future set of options, currently unused
Returns
:
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	(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
Validate a branch of a tree, starting with the given @elem.
ctxt
:
a schema validation context
elem
:
an element node
Returns
:
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: xmlSchemaValidateStream
int	xmlSchemaValidateStream		(
libxml-xmlschemas.html#xmlSchemaValidCtxtPtr
xmlSchemaValidCtxtPtr
ctxt,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data)
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.
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: xmlSchemaValidityErrorFunc
Function type: xmlSchemaValidityErrorFunc
void	xmlSchemaValidityErrorFunc	(void * ctx,
const char * msg,
... ...)
ctx
:
msg
:
...
:
Function type: xmlSchemaValidityWarningFunc
Function type: xmlSchemaValidityWarningFunc
void	xmlSchemaValidityWarningFunc	(void * ctx,
const char * msg,
... ...)
ctx
:
msg
:
...
:
../bugs.html
Daniel Veillard
