xref: /aosp_15_r20/external/libxml2/doc/devhelp/libxml2-xmlschemas.html (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<html>
2*7c568831SAndroid Build Coastguard Worker<head>
3*7c568831SAndroid Build Coastguard Worker<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4*7c568831SAndroid Build Coastguard Worker<title>xmlschemas: incomplete XML Schemas structure implementation</title>
5*7c568831SAndroid Build Coastguard Worker<meta name="generator" content="Libxml2 devhelp stylesheet">
6*7c568831SAndroid Build Coastguard Worker<link rel="start" href="index.html" title="libxml2 Reference Manual">
7*7c568831SAndroid Build Coastguard Worker<link rel="up" href="general.html" title="API">
8*7c568831SAndroid Build Coastguard Worker<link rel="stylesheet" href="style.css" type="text/css">
9*7c568831SAndroid Build Coastguard Worker<link rel="chapter" href="general.html" title="API">
10*7c568831SAndroid Build Coastguard Worker</head>
11*7c568831SAndroid Build Coastguard Worker<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12*7c568831SAndroid Build Coastguard Worker<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
13*7c568831SAndroid Build Coastguard Worker<td><a accesskey="p" href="libxml2-xmlsave.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
14*7c568831SAndroid Build Coastguard Worker<td><a accesskey="u" href="general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
15*7c568831SAndroid Build Coastguard Worker<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
16*7c568831SAndroid Build Coastguard Worker<td><a accesskey="n" href="libxml2-xmlschemastypes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
17*7c568831SAndroid Build Coastguard Worker<th width="100%" align="center">libxml2 Reference Manual</th>
18*7c568831SAndroid Build Coastguard Worker</tr></table>
19*7c568831SAndroid Build Coastguard Worker<h2><span class="refentrytitle">xmlschemas</span></h2>
20*7c568831SAndroid Build Coastguard Worker<p>xmlschemas - incomplete XML Schemas structure implementation</p>
21*7c568831SAndroid Build Coastguard Worker<p>interface to the XML Schemas handling and schema validity checking, it is incomplete right now. </p>
22*7c568831SAndroid Build Coastguard Worker<p>Author(s): Daniel Veillard </p>
23*7c568831SAndroid Build Coastguard Worker<div class="refsynopsisdiv">
24*7c568831SAndroid Build Coastguard Worker<h2>Synopsis</h2>
25*7c568831SAndroid Build Coastguard Worker<pre class="synopsis">typedef struct _xmlSchema <a href="#xmlSchema">xmlSchema</a>;
26*7c568831SAndroid Build Coastguard Workertypedef struct _xmlSchemaParserCtxt <a href="#xmlSchemaParserCtxt">xmlSchemaParserCtxt</a>;
27*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xmlschemas.html#xmlSchemaParserCtxt">xmlSchemaParserCtxt</a> * <a href="#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>;
28*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xmlschemas.html#xmlSchema">xmlSchema</a> * <a href="#xmlSchemaPtr">xmlSchemaPtr</a>;
29*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugStruct">xmlSchemaSAXPlugStruct</a> * <a href="#xmlSchemaSAXPlugPtr">xmlSchemaSAXPlugPtr</a>;
30*7c568831SAndroid Build Coastguard Workertypedef struct _xmlSchemaSAXPlug <a href="#xmlSchemaSAXPlugStruct">xmlSchemaSAXPlugStruct</a>;
31*7c568831SAndroid Build Coastguard Workertypedef struct _xmlSchemaValidCtxt <a href="#xmlSchemaValidCtxt">xmlSchemaValidCtxt</a>;
32*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xmlschemas.html#xmlSchemaValidCtxt">xmlSchemaValidCtxt</a> * <a href="#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a>;
33*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlSchemaValidError">xmlSchemaValidError</a>;
34*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlSchemaValidOption">xmlSchemaValidOption</a>;
35*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaDump">xmlSchemaDump</a>			(FILE * output, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema);
36*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaFree">xmlSchemaFree</a>			(<a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema);
37*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaFreeParserCtxt">xmlSchemaFreeParserCtxt</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt);
38*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaFreeValidCtxt">xmlSchemaFreeValidCtxt</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt);
39*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaGetParserErrors">xmlSchemaGetParserErrors</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> * err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> * warn, <br>					 void ** ctx);
40*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaGetValidErrors">xmlSchemaGetValidErrors</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> * err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> * warn, <br>					 void ** ctx);
41*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaIsValid">xmlSchemaIsValid</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt);
42*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	<a href="#xmlSchemaNewDocParserCtxt">xmlSchemaNewDocParserCtxt</a>	(<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
43*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	<a href="#xmlSchemaNewMemParserCtxt">xmlSchemaNewMemParserCtxt</a>	(const char * buffer, <br>							 int size);
44*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	<a href="#xmlSchemaNewParserCtxt">xmlSchemaNewParserCtxt</a>	(const char * URL);
45*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a>	<a href="#xmlSchemaNewValidCtxt">xmlSchemaNewValidCtxt</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema);
46*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a>	<a href="#xmlSchemaParse">xmlSchemaParse</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt);
47*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugPtr">xmlSchemaSAXPlugPtr</a>	<a href="#xmlSchemaSAXPlug">xmlSchemaSAXPlug</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>						 <a href="libxml2-tree.html#xmlSAXHandlerPtr">xmlSAXHandlerPtr</a> * sax, <br>						 void ** user_data);
48*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaSAXUnplug">xmlSchemaSAXUnplug</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugPtr">xmlSchemaSAXPlugPtr</a> plug);
49*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaSetParserErrors">xmlSchemaSetParserErrors</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> warn, <br>					 void * ctx);
50*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaSetParserStructuredErrors">xmlSchemaSetParserStructuredErrors</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>						 <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> serror, <br>						 void * ctx);
51*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaSetValidErrors">xmlSchemaSetValidErrors</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> warn, <br>					 void * ctx);
52*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaSetValidOptions">xmlSchemaSetValidOptions</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 int options);
53*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaSetValidStructuredErrors">xmlSchemaSetValidStructuredErrors</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>						 <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> serror, <br>						 void * ctx);
54*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaValidCtxtGetOptions">xmlSchemaValidCtxtGetOptions</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt);
55*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlParserCtxtPtr">xmlParserCtxtPtr</a>	<a href="#xmlSchemaValidCtxtGetParserCtxt">xmlSchemaValidCtxtGetParserCtxt</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt);
56*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaValidateDoc">xmlSchemaValidateDoc</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
57*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaValidateFile">xmlSchemaValidateFile</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 const char * filename, <br>					 int options);
58*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaValidateOneElement">xmlSchemaValidateOneElement</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> elem);
59*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaValidateSetFilename">xmlSchemaValidateSetFilename</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> vctxt, <br>					 const char * filename);
60*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlSchemaValidateSetLocator">xmlSchemaValidateSetLocator</a>	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> vctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityLocatorFunc">xmlSchemaValidityLocatorFunc</a> f, <br>					 void * ctxt);
61*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlSchemaValidateStream">xmlSchemaValidateStream</a>		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br>					 <a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc, <br>					 <a href="libxml2-tree.html#xmlSAXHandlerPtr">xmlSAXHandlerPtr</a> sax, <br>					 void * user_data);
62*7c568831SAndroid Build Coastguard Workertypedef void <a href="#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a>	(void * ctx, <br>					 const char * msg, <br>					 ... ...);
63*7c568831SAndroid Build Coastguard Workertypedef int <a href="#xmlSchemaValidityLocatorFunc">xmlSchemaValidityLocatorFunc</a>	(void * ctx, <br>					 const char ** file, <br>					 unsigned long * line);
64*7c568831SAndroid Build Coastguard Workertypedef void <a href="#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a>	(void * ctx, <br>					 const char * msg, <br>					 ... ...);
65*7c568831SAndroid Build Coastguard Worker</pre>
66*7c568831SAndroid Build Coastguard Worker</div>
67*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"><h2>Description</h2></div>
68*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en">
69*7c568831SAndroid Build Coastguard Worker<h2>Details</h2>
70*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
71*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
72*7c568831SAndroid Build Coastguard Worker<h3>
73*7c568831SAndroid Build Coastguard Worker<a name="xmlSchema">Structure </a>xmlSchema</h3>
74*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlSchema {
75*7c568831SAndroid Build Coastguard Worker    const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	name	: schema name
76*7c568831SAndroid Build Coastguard Worker    const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	targetNamespace	: the target namespace
77*7c568831SAndroid Build Coastguard Worker    const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	version
78*7c568831SAndroid Build Coastguard Worker    const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	id	: Obsolete
79*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a>	doc
80*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-schemasInternals.html#xmlSchemaAnnotPtr">xmlSchemaAnnotPtr</a>	annot
81*7c568831SAndroid Build Coastguard Worker    int	flags
82*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	typeDecl
83*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	attrDecl
84*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	attrgrpDecl
85*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	elemDecl
86*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	notaDecl
87*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	schemasImports
88*7c568831SAndroid Build Coastguard Worker    void *	_private	: unused by the library for users or bindings
89*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	groupDecl
90*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a>	dict
91*7c568831SAndroid Build Coastguard Worker    void *	includes	: the includes, this is opaque for now
92*7c568831SAndroid Build Coastguard Worker    int	preserve	: whether to free the document
93*7c568831SAndroid Build Coastguard Worker    int	counter	: used to give anonymous components unique names
94*7c568831SAndroid Build Coastguard Worker    <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a>	idcDef	: All identity-constraint defs.
95*7c568831SAndroid Build Coastguard Worker    void *	volatiles	: Obsolete
96*7c568831SAndroid Build Coastguard Worker} xmlSchema;
97*7c568831SAndroid Build Coastguard Worker</pre>
98*7c568831SAndroid Build Coastguard Worker<p></p>
99*7c568831SAndroid Build Coastguard Worker</div>
100*7c568831SAndroid Build Coastguard Worker<hr>
101*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
102*7c568831SAndroid Build Coastguard Worker<h3>
103*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaParserCtxt">Structure </a>xmlSchemaParserCtxt</h3>
104*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlSchemaParserCtxt {
105*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
106*7c568831SAndroid Build Coastguard Worker} xmlSchemaParserCtxt;
107*7c568831SAndroid Build Coastguard Worker</pre>
108*7c568831SAndroid Build Coastguard Worker<p></p>
109*7c568831SAndroid Build Coastguard Worker</div>
110*7c568831SAndroid Build Coastguard Worker<hr>
111*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
112*7c568831SAndroid Build Coastguard Worker<h3>
113*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaParserCtxtPtr">Typedef </a>xmlSchemaParserCtxtPtr</h3>
114*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaParserCtxt">xmlSchemaParserCtxt</a> * xmlSchemaParserCtxtPtr;
115*7c568831SAndroid Build Coastguard Worker</pre>
116*7c568831SAndroid Build Coastguard Worker<p></p>
117*7c568831SAndroid Build Coastguard Worker</div>
118*7c568831SAndroid Build Coastguard Worker<hr>
119*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
120*7c568831SAndroid Build Coastguard Worker<h3>
121*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaPtr">Typedef </a>xmlSchemaPtr</h3>
122*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchema">xmlSchema</a> * xmlSchemaPtr;
123*7c568831SAndroid Build Coastguard Worker</pre>
124*7c568831SAndroid Build Coastguard Worker<p></p>
125*7c568831SAndroid Build Coastguard Worker</div>
126*7c568831SAndroid Build Coastguard Worker<hr>
127*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
128*7c568831SAndroid Build Coastguard Worker<h3>
129*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSAXPlugPtr">Typedef </a>xmlSchemaSAXPlugPtr</h3>
130*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugStruct">xmlSchemaSAXPlugStruct</a> * xmlSchemaSAXPlugPtr;
131*7c568831SAndroid Build Coastguard Worker</pre>
132*7c568831SAndroid Build Coastguard Worker<p></p>
133*7c568831SAndroid Build Coastguard Worker</div>
134*7c568831SAndroid Build Coastguard Worker<hr>
135*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
136*7c568831SAndroid Build Coastguard Worker<h3>
137*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSAXPlugStruct">Structure </a>xmlSchemaSAXPlugStruct</h3>
138*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlSchemaSAXPlug {
139*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
140*7c568831SAndroid Build Coastguard Worker} xmlSchemaSAXPlugStruct;
141*7c568831SAndroid Build Coastguard Worker</pre>
142*7c568831SAndroid Build Coastguard Worker<p></p>
143*7c568831SAndroid Build Coastguard Worker</div>
144*7c568831SAndroid Build Coastguard Worker<hr>
145*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
146*7c568831SAndroid Build Coastguard Worker<h3>
147*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidCtxt">Structure </a>xmlSchemaValidCtxt</h3>
148*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlSchemaValidCtxt {
149*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
150*7c568831SAndroid Build Coastguard Worker} xmlSchemaValidCtxt;
151*7c568831SAndroid Build Coastguard Worker</pre>
152*7c568831SAndroid Build Coastguard Worker<p></p>
153*7c568831SAndroid Build Coastguard Worker</div>
154*7c568831SAndroid Build Coastguard Worker<hr>
155*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
156*7c568831SAndroid Build Coastguard Worker<h3>
157*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidCtxtPtr">Typedef </a>xmlSchemaValidCtxtPtr</h3>
158*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaValidCtxt">xmlSchemaValidCtxt</a> * xmlSchemaValidCtxtPtr;
159*7c568831SAndroid Build Coastguard Worker</pre>
160*7c568831SAndroid Build Coastguard Worker<p></p>
161*7c568831SAndroid Build Coastguard Worker</div>
162*7c568831SAndroid Build Coastguard Worker<hr>
163*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
164*7c568831SAndroid Build Coastguard Worker<h3>
165*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidError">Enum </a>xmlSchemaValidError</h3>
166*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlSchemaValidError">xmlSchemaValidError</a> {
167*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_OK">XML_SCHEMAS_ERR_OK</a> = 0
168*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOROOT">XML_SCHEMAS_ERR_NOROOT</a> = 1
169*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_UNDECLAREDELEM">XML_SCHEMAS_ERR_UNDECLAREDELEM</a> = 2
170*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTTOPLEVEL">XML_SCHEMAS_ERR_NOTTOPLEVEL</a> = 3
171*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_MISSING">XML_SCHEMAS_ERR_MISSING</a> = 4
172*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_WRONGELEM">XML_SCHEMAS_ERR_WRONGELEM</a> = 5
173*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTYPE">XML_SCHEMAS_ERR_NOTYPE</a> = 6
174*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOROLLBACK">XML_SCHEMAS_ERR_NOROLLBACK</a> = 7
175*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_ISABSTRACT">XML_SCHEMAS_ERR_ISABSTRACT</a> = 8
176*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTEMPTY">XML_SCHEMAS_ERR_NOTEMPTY</a> = 9
177*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_ELEMCONT">XML_SCHEMAS_ERR_ELEMCONT</a> = 10
178*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_HAVEDEFAULT">XML_SCHEMAS_ERR_HAVEDEFAULT</a> = 11
179*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTNILLABLE">XML_SCHEMAS_ERR_NOTNILLABLE</a> = 12
180*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_EXTRACONTENT">XML_SCHEMAS_ERR_EXTRACONTENT</a> = 13
181*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_INVALIDATTR">XML_SCHEMAS_ERR_INVALIDATTR</a> = 14
182*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_INVALIDELEM">XML_SCHEMAS_ERR_INVALIDELEM</a> = 15
183*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTDETERMINIST">XML_SCHEMAS_ERR_NOTDETERMINIST</a> = 16
184*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_CONSTRUCT">XML_SCHEMAS_ERR_CONSTRUCT</a> = 17
185*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_INTERNAL">XML_SCHEMAS_ERR_INTERNAL</a> = 18
186*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_NOTSIMPLE">XML_SCHEMAS_ERR_NOTSIMPLE</a> = 19
187*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_ATTRUNKNOWN">XML_SCHEMAS_ERR_ATTRUNKNOWN</a> = 20
188*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_ATTRINVALID">XML_SCHEMAS_ERR_ATTRINVALID</a> = 21
189*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_VALUE">XML_SCHEMAS_ERR_VALUE</a> = 22
190*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_FACET">XML_SCHEMAS_ERR_FACET</a> = 23
191*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_">XML_SCHEMAS_ERR_</a> = 24
192*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMAS_ERR_XXX">XML_SCHEMAS_ERR_XXX</a> = 25
193*7c568831SAndroid Build Coastguard Worker};
194*7c568831SAndroid Build Coastguard Worker</pre>
195*7c568831SAndroid Build Coastguard Worker<p></p>
196*7c568831SAndroid Build Coastguard Worker</div>
197*7c568831SAndroid Build Coastguard Worker<hr>
198*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
199*7c568831SAndroid Build Coastguard Worker<h3>
200*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidOption">Enum </a>xmlSchemaValidOption</h3>
201*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlSchemaValidOption">xmlSchemaValidOption</a> {
202*7c568831SAndroid Build Coastguard Worker    <a name="XML_SCHEMA_VAL_VC_I_CREATE">XML_SCHEMA_VAL_VC_I_CREATE</a> = 1 /*  Default/fixed: create an attribute node * or an element's text node on the instance. * */
203*7c568831SAndroid Build Coastguard Worker};
204*7c568831SAndroid Build Coastguard Worker</pre>
205*7c568831SAndroid Build Coastguard Worker<p></p>
206*7c568831SAndroid Build Coastguard Worker</div>
207*7c568831SAndroid Build Coastguard Worker<hr>
208*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
209*7c568831SAndroid Build Coastguard Worker<h3>
210*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidityErrorFunc"></a>Function type xmlSchemaValidityErrorFunc</h3>
211*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaValidityErrorFunc	(void * ctx, <br>					 const char * msg, <br>					 ... ...)<br>
212*7c568831SAndroid Build Coastguard Worker</pre>
213*7c568831SAndroid Build Coastguard Worker<p>Signature of an error callback from an XSD validation</p>
214*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
215*7c568831SAndroid Build Coastguard Worker<col align="left">
216*7c568831SAndroid Build Coastguard Worker<tbody>
217*7c568831SAndroid Build Coastguard Worker<tr>
218*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
219*7c568831SAndroid Build Coastguard Worker<td>the validation context</td>
220*7c568831SAndroid Build Coastguard Worker</tr>
221*7c568831SAndroid Build Coastguard Worker<tr>
222*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>msg</tt></i>:</span></td>
223*7c568831SAndroid Build Coastguard Worker<td>the message</td>
224*7c568831SAndroid Build Coastguard Worker</tr>
225*7c568831SAndroid Build Coastguard Worker<tr>
226*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>...</tt></i>:</span></td>
227*7c568831SAndroid Build Coastguard Worker<td>extra arguments</td>
228*7c568831SAndroid Build Coastguard Worker</tr>
229*7c568831SAndroid Build Coastguard Worker</tbody>
230*7c568831SAndroid Build Coastguard Worker</table></div>
231*7c568831SAndroid Build Coastguard Worker</div>
232*7c568831SAndroid Build Coastguard Worker<hr>
233*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
234*7c568831SAndroid Build Coastguard Worker<h3>
235*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidityLocatorFunc"></a>Function type xmlSchemaValidityLocatorFunc</h3>
236*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidityLocatorFunc	(void * ctx, <br>					 const char ** file, <br>					 unsigned long * line)<br>
237*7c568831SAndroid Build Coastguard Worker</pre>
238*7c568831SAndroid Build Coastguard Worker<p>A schemas validation locator, a callback called by the validator. This is used when file or node information are not available to find out what file and line number are affected</p>
239*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
240*7c568831SAndroid Build Coastguard Worker<col align="left">
241*7c568831SAndroid Build Coastguard Worker<tbody>
242*7c568831SAndroid Build Coastguard Worker<tr>
243*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
244*7c568831SAndroid Build Coastguard Worker<td>user provided context</td>
245*7c568831SAndroid Build Coastguard Worker</tr>
246*7c568831SAndroid Build Coastguard Worker<tr>
247*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>file</tt></i>:</span></td>
248*7c568831SAndroid Build Coastguard Worker<td>returned file information</td>
249*7c568831SAndroid Build Coastguard Worker</tr>
250*7c568831SAndroid Build Coastguard Worker<tr>
251*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>line</tt></i>:</span></td>
252*7c568831SAndroid Build Coastguard Worker<td>returned line information</td>
253*7c568831SAndroid Build Coastguard Worker</tr>
254*7c568831SAndroid Build Coastguard Worker<tr>
255*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
256*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td>
257*7c568831SAndroid Build Coastguard Worker</tr>
258*7c568831SAndroid Build Coastguard Worker</tbody>
259*7c568831SAndroid Build Coastguard Worker</table></div>
260*7c568831SAndroid Build Coastguard Worker</div>
261*7c568831SAndroid Build Coastguard Worker<hr>
262*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
263*7c568831SAndroid Build Coastguard Worker<h3>
264*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidityWarningFunc"></a>Function type xmlSchemaValidityWarningFunc</h3>
265*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaValidityWarningFunc	(void * ctx, <br>					 const char * msg, <br>					 ... ...)<br>
266*7c568831SAndroid Build Coastguard Worker</pre>
267*7c568831SAndroid Build Coastguard Worker<p>Signature of a warning callback from an XSD validation</p>
268*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
269*7c568831SAndroid Build Coastguard Worker<col align="left">
270*7c568831SAndroid Build Coastguard Worker<tbody>
271*7c568831SAndroid Build Coastguard Worker<tr>
272*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
273*7c568831SAndroid Build Coastguard Worker<td>the validation context</td>
274*7c568831SAndroid Build Coastguard Worker</tr>
275*7c568831SAndroid Build Coastguard Worker<tr>
276*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>msg</tt></i>:</span></td>
277*7c568831SAndroid Build Coastguard Worker<td>the message</td>
278*7c568831SAndroid Build Coastguard Worker</tr>
279*7c568831SAndroid Build Coastguard Worker<tr>
280*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>...</tt></i>:</span></td>
281*7c568831SAndroid Build Coastguard Worker<td>extra arguments</td>
282*7c568831SAndroid Build Coastguard Worker</tr>
283*7c568831SAndroid Build Coastguard Worker</tbody>
284*7c568831SAndroid Build Coastguard Worker</table></div>
285*7c568831SAndroid Build Coastguard Worker</div>
286*7c568831SAndroid Build Coastguard Worker<hr>
287*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
288*7c568831SAndroid Build Coastguard Worker<h3>
289*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaDump"></a>xmlSchemaDump ()</h3>
290*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaDump			(FILE * output, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema)<br>
291*7c568831SAndroid Build Coastguard Worker</pre>
292*7c568831SAndroid Build Coastguard Worker<p>Dump a Schema structure.</p>
293*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
294*7c568831SAndroid Build Coastguard Worker<col align="left">
295*7c568831SAndroid Build Coastguard Worker<tbody>
296*7c568831SAndroid Build Coastguard Worker<tr>
297*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>output</tt></i>:</span></td>
298*7c568831SAndroid Build Coastguard Worker<td>the file output</td>
299*7c568831SAndroid Build Coastguard Worker</tr>
300*7c568831SAndroid Build Coastguard Worker<tr>
301*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>schema</tt></i>:</span></td>
302*7c568831SAndroid Build Coastguard Worker<td>a schema structure</td>
303*7c568831SAndroid Build Coastguard Worker</tr>
304*7c568831SAndroid Build Coastguard Worker</tbody>
305*7c568831SAndroid Build Coastguard Worker</table></div>
306*7c568831SAndroid Build Coastguard Worker</div>
307*7c568831SAndroid Build Coastguard Worker<hr>
308*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
309*7c568831SAndroid Build Coastguard Worker<h3>
310*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaFree"></a>xmlSchemaFree ()</h3>
311*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaFree			(<a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema)<br>
312*7c568831SAndroid Build Coastguard Worker</pre>
313*7c568831SAndroid Build Coastguard Worker<p>Deallocate a Schema structure.</p>
314*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
315*7c568831SAndroid Build Coastguard Worker<col align="left">
316*7c568831SAndroid Build Coastguard Worker<tbody><tr>
317*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>schema</tt></i>:</span></td>
318*7c568831SAndroid Build Coastguard Worker<td>a schema structure</td>
319*7c568831SAndroid Build Coastguard Worker</tr></tbody>
320*7c568831SAndroid Build Coastguard Worker</table></div>
321*7c568831SAndroid Build Coastguard Worker</div>
322*7c568831SAndroid Build Coastguard Worker<hr>
323*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
324*7c568831SAndroid Build Coastguard Worker<h3>
325*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaFreeParserCtxt"></a>xmlSchemaFreeParserCtxt ()</h3>
326*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaFreeParserCtxt		(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt)<br>
327*7c568831SAndroid Build Coastguard Worker</pre>
328*7c568831SAndroid Build Coastguard Worker<p>Free the resources associated to the schema parser context</p>
329*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
330*7c568831SAndroid Build Coastguard Worker<col align="left">
331*7c568831SAndroid Build Coastguard Worker<tbody><tr>
332*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
333*7c568831SAndroid Build Coastguard Worker<td>the schema parser context</td>
334*7c568831SAndroid Build Coastguard Worker</tr></tbody>
335*7c568831SAndroid Build Coastguard Worker</table></div>
336*7c568831SAndroid Build Coastguard Worker</div>
337*7c568831SAndroid Build Coastguard Worker<hr>
338*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
339*7c568831SAndroid Build Coastguard Worker<h3>
340*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaFreeValidCtxt"></a>xmlSchemaFreeValidCtxt ()</h3>
341*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaFreeValidCtxt		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt)<br>
342*7c568831SAndroid Build Coastguard Worker</pre>
343*7c568831SAndroid Build Coastguard Worker<p>Free the resources associated to the schema validation context</p>
344*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
345*7c568831SAndroid Build Coastguard Worker<col align="left">
346*7c568831SAndroid Build Coastguard Worker<tbody><tr>
347*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
348*7c568831SAndroid Build Coastguard Worker<td>the schema validation context</td>
349*7c568831SAndroid Build Coastguard Worker</tr></tbody>
350*7c568831SAndroid Build Coastguard Worker</table></div>
351*7c568831SAndroid Build Coastguard Worker</div>
352*7c568831SAndroid Build Coastguard Worker<hr>
353*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
354*7c568831SAndroid Build Coastguard Worker<h3>
355*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaGetParserErrors"></a>xmlSchemaGetParserErrors ()</h3>
356*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaGetParserErrors	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> * err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> * warn, <br>					 void ** ctx)<br>
357*7c568831SAndroid Build Coastguard Worker</pre>
358*7c568831SAndroid Build Coastguard Worker<p>Get the callback information used to handle errors for a parser context</p>
359*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
360*7c568831SAndroid Build Coastguard Worker<col align="left">
361*7c568831SAndroid Build Coastguard Worker<tbody>
362*7c568831SAndroid Build Coastguard Worker<tr>
363*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
364*7c568831SAndroid Build Coastguard Worker<td>a XMl-Schema parser context</td>
365*7c568831SAndroid Build Coastguard Worker</tr>
366*7c568831SAndroid Build Coastguard Worker<tr>
367*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>err</tt></i>:</span></td>
368*7c568831SAndroid Build Coastguard Worker<td>the error callback result</td>
369*7c568831SAndroid Build Coastguard Worker</tr>
370*7c568831SAndroid Build Coastguard Worker<tr>
371*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>warn</tt></i>:</span></td>
372*7c568831SAndroid Build Coastguard Worker<td>the warning callback result</td>
373*7c568831SAndroid Build Coastguard Worker</tr>
374*7c568831SAndroid Build Coastguard Worker<tr>
375*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
376*7c568831SAndroid Build Coastguard Worker<td>contextual data for the callbacks result</td>
377*7c568831SAndroid Build Coastguard Worker</tr>
378*7c568831SAndroid Build Coastguard Worker<tr>
379*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
380*7c568831SAndroid Build Coastguard Worker<td>-1 in case of failure, 0 otherwise</td>
381*7c568831SAndroid Build Coastguard Worker</tr>
382*7c568831SAndroid Build Coastguard Worker</tbody>
383*7c568831SAndroid Build Coastguard Worker</table></div>
384*7c568831SAndroid Build Coastguard Worker</div>
385*7c568831SAndroid Build Coastguard Worker<hr>
386*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
387*7c568831SAndroid Build Coastguard Worker<h3>
388*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaGetValidErrors"></a>xmlSchemaGetValidErrors ()</h3>
389*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaGetValidErrors		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> * err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> * warn, <br>					 void ** ctx)<br>
390*7c568831SAndroid Build Coastguard Worker</pre>
391*7c568831SAndroid Build Coastguard Worker<p>Get the error and warning callback information</p>
392*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
393*7c568831SAndroid Build Coastguard Worker<col align="left">
394*7c568831SAndroid Build Coastguard Worker<tbody>
395*7c568831SAndroid Build Coastguard Worker<tr>
396*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
397*7c568831SAndroid Build Coastguard Worker<td>a XML-Schema validation context</td>
398*7c568831SAndroid Build Coastguard Worker</tr>
399*7c568831SAndroid Build Coastguard Worker<tr>
400*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>err</tt></i>:</span></td>
401*7c568831SAndroid Build Coastguard Worker<td>the error function result</td>
402*7c568831SAndroid Build Coastguard Worker</tr>
403*7c568831SAndroid Build Coastguard Worker<tr>
404*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>warn</tt></i>:</span></td>
405*7c568831SAndroid Build Coastguard Worker<td>the warning function result</td>
406*7c568831SAndroid Build Coastguard Worker</tr>
407*7c568831SAndroid Build Coastguard Worker<tr>
408*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
409*7c568831SAndroid Build Coastguard Worker<td>the functions context result</td>
410*7c568831SAndroid Build Coastguard Worker</tr>
411*7c568831SAndroid Build Coastguard Worker<tr>
412*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
413*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error and 0 otherwise</td>
414*7c568831SAndroid Build Coastguard Worker</tr>
415*7c568831SAndroid Build Coastguard Worker</tbody>
416*7c568831SAndroid Build Coastguard Worker</table></div>
417*7c568831SAndroid Build Coastguard Worker</div>
418*7c568831SAndroid Build Coastguard Worker<hr>
419*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
420*7c568831SAndroid Build Coastguard Worker<h3>
421*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaIsValid"></a>xmlSchemaIsValid ()</h3>
422*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaIsValid		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt)<br>
423*7c568831SAndroid Build Coastguard Worker</pre>
424*7c568831SAndroid Build Coastguard Worker<p>Check if any error was detected during validation.</p>
425*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
426*7c568831SAndroid Build Coastguard Worker<col align="left">
427*7c568831SAndroid Build Coastguard Worker<tbody>
428*7c568831SAndroid Build Coastguard Worker<tr>
429*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
430*7c568831SAndroid Build Coastguard Worker<td>the schema validation context</td>
431*7c568831SAndroid Build Coastguard Worker</tr>
432*7c568831SAndroid Build Coastguard Worker<tr>
433*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
434*7c568831SAndroid Build Coastguard Worker<td>1 if valid so far, 0 if errors were detected, and -1 in case of internal error.</td>
435*7c568831SAndroid Build Coastguard Worker</tr>
436*7c568831SAndroid Build Coastguard Worker</tbody>
437*7c568831SAndroid Build Coastguard Worker</table></div>
438*7c568831SAndroid Build Coastguard Worker</div>
439*7c568831SAndroid Build Coastguard Worker<hr>
440*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
441*7c568831SAndroid Build Coastguard Worker<h3>
442*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaNewDocParserCtxt"></a>xmlSchemaNewDocParserCtxt ()</h3>
443*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	xmlSchemaNewDocParserCtxt	(<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br>
444*7c568831SAndroid Build Coastguard Worker</pre>
445*7c568831SAndroid Build Coastguard Worker<p>Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process.</p>
446*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
447*7c568831SAndroid Build Coastguard Worker<col align="left">
448*7c568831SAndroid Build Coastguard Worker<tbody>
449*7c568831SAndroid Build Coastguard Worker<tr>
450*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td>
451*7c568831SAndroid Build Coastguard Worker<td>a preparsed document tree</td>
452*7c568831SAndroid Build Coastguard Worker</tr>
453*7c568831SAndroid Build Coastguard Worker<tr>
454*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
455*7c568831SAndroid Build Coastguard Worker<td>the parser context or NULL in case of error</td>
456*7c568831SAndroid Build Coastguard Worker</tr>
457*7c568831SAndroid Build Coastguard Worker</tbody>
458*7c568831SAndroid Build Coastguard Worker</table></div>
459*7c568831SAndroid Build Coastguard Worker</div>
460*7c568831SAndroid Build Coastguard Worker<hr>
461*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
462*7c568831SAndroid Build Coastguard Worker<h3>
463*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaNewMemParserCtxt"></a>xmlSchemaNewMemParserCtxt ()</h3>
464*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	xmlSchemaNewMemParserCtxt	(const char * buffer, <br>							 int size)<br>
465*7c568831SAndroid Build Coastguard Worker</pre>
466*7c568831SAndroid Build Coastguard Worker<p>Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.</p>
467*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
468*7c568831SAndroid Build Coastguard Worker<col align="left">
469*7c568831SAndroid Build Coastguard Worker<tbody>
470*7c568831SAndroid Build Coastguard Worker<tr>
471*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>buffer</tt></i>:</span></td>
472*7c568831SAndroid Build Coastguard Worker<td>a pointer to a char array containing the schemas</td>
473*7c568831SAndroid Build Coastguard Worker</tr>
474*7c568831SAndroid Build Coastguard Worker<tr>
475*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>size</tt></i>:</span></td>
476*7c568831SAndroid Build Coastguard Worker<td>the size of the array</td>
477*7c568831SAndroid Build Coastguard Worker</tr>
478*7c568831SAndroid Build Coastguard Worker<tr>
479*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
480*7c568831SAndroid Build Coastguard Worker<td>the parser context or NULL in case of error</td>
481*7c568831SAndroid Build Coastguard Worker</tr>
482*7c568831SAndroid Build Coastguard Worker</tbody>
483*7c568831SAndroid Build Coastguard Worker</table></div>
484*7c568831SAndroid Build Coastguard Worker</div>
485*7c568831SAndroid Build Coastguard Worker<hr>
486*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
487*7c568831SAndroid Build Coastguard Worker<h3>
488*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaNewParserCtxt"></a>xmlSchemaNewParserCtxt ()</h3>
489*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a>	xmlSchemaNewParserCtxt	(const char * URL)<br>
490*7c568831SAndroid Build Coastguard Worker</pre>
491*7c568831SAndroid Build Coastguard Worker<p>Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.</p>
492*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
493*7c568831SAndroid Build Coastguard Worker<col align="left">
494*7c568831SAndroid Build Coastguard Worker<tbody>
495*7c568831SAndroid Build Coastguard Worker<tr>
496*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td>
497*7c568831SAndroid Build Coastguard Worker<td>the location of the schema</td>
498*7c568831SAndroid Build Coastguard Worker</tr>
499*7c568831SAndroid Build Coastguard Worker<tr>
500*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
501*7c568831SAndroid Build Coastguard Worker<td>the parser context or NULL in case of error</td>
502*7c568831SAndroid Build Coastguard Worker</tr>
503*7c568831SAndroid Build Coastguard Worker</tbody>
504*7c568831SAndroid Build Coastguard Worker</table></div>
505*7c568831SAndroid Build Coastguard Worker</div>
506*7c568831SAndroid Build Coastguard Worker<hr>
507*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
508*7c568831SAndroid Build Coastguard Worker<h3>
509*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaNewValidCtxt"></a>xmlSchemaNewValidCtxt ()</h3>
510*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a>	xmlSchemaNewValidCtxt	(<a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema)<br>
511*7c568831SAndroid Build Coastguard Worker</pre>
512*7c568831SAndroid Build Coastguard Worker<p>Create an XML Schemas validation context based on the given schema.</p>
513*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
514*7c568831SAndroid Build Coastguard Worker<col align="left">
515*7c568831SAndroid Build Coastguard Worker<tbody>
516*7c568831SAndroid Build Coastguard Worker<tr>
517*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>schema</tt></i>:</span></td>
518*7c568831SAndroid Build Coastguard Worker<td>a precompiled XML Schemas</td>
519*7c568831SAndroid Build Coastguard Worker</tr>
520*7c568831SAndroid Build Coastguard Worker<tr>
521*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
522*7c568831SAndroid Build Coastguard Worker<td>the validation context or NULL in case of error</td>
523*7c568831SAndroid Build Coastguard Worker</tr>
524*7c568831SAndroid Build Coastguard Worker</tbody>
525*7c568831SAndroid Build Coastguard Worker</table></div>
526*7c568831SAndroid Build Coastguard Worker</div>
527*7c568831SAndroid Build Coastguard Worker<hr>
528*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
529*7c568831SAndroid Build Coastguard Worker<h3>
530*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaParse"></a>xmlSchemaParse ()</h3>
531*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a>	xmlSchemaParse		(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt)<br>
532*7c568831SAndroid Build Coastguard Worker</pre>
533*7c568831SAndroid Build Coastguard Worker<p>parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances.</p>
534*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
535*7c568831SAndroid Build Coastguard Worker<col align="left">
536*7c568831SAndroid Build Coastguard Worker<tbody>
537*7c568831SAndroid Build Coastguard Worker<tr>
538*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
539*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
540*7c568831SAndroid Build Coastguard Worker</tr>
541*7c568831SAndroid Build Coastguard Worker<tr>
542*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
543*7c568831SAndroid Build Coastguard Worker<td>the internal XML Schema structure built from the resource or NULL in case of error</td>
544*7c568831SAndroid Build Coastguard Worker</tr>
545*7c568831SAndroid Build Coastguard Worker</tbody>
546*7c568831SAndroid Build Coastguard Worker</table></div>
547*7c568831SAndroid Build Coastguard Worker</div>
548*7c568831SAndroid Build Coastguard Worker<hr>
549*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
550*7c568831SAndroid Build Coastguard Worker<h3>
551*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSAXPlug"></a>xmlSchemaSAXPlug ()</h3>
552*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugPtr">xmlSchemaSAXPlugPtr</a>	xmlSchemaSAXPlug	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>						 <a href="libxml2-tree.html#xmlSAXHandlerPtr">xmlSAXHandlerPtr</a> * sax, <br>						 void ** user_data)<br>
553*7c568831SAndroid Build Coastguard Worker</pre>
554*7c568831SAndroid Build Coastguard Worker<p>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.</p>
555*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
556*7c568831SAndroid Build Coastguard Worker<col align="left">
557*7c568831SAndroid Build Coastguard Worker<tbody>
558*7c568831SAndroid Build Coastguard Worker<tr>
559*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
560*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
561*7c568831SAndroid Build Coastguard Worker</tr>
562*7c568831SAndroid Build Coastguard Worker<tr>
563*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>sax</tt></i>:</span></td>
564*7c568831SAndroid Build Coastguard Worker<td>a pointer to the original <a href="libxml2-tree.html#xmlSAXHandlerPtr">xmlSAXHandlerPtr</a>
565*7c568831SAndroid Build Coastguard Worker</td>
566*7c568831SAndroid Build Coastguard Worker</tr>
567*7c568831SAndroid Build Coastguard Worker<tr>
568*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>user_data</tt></i>:</span></td>
569*7c568831SAndroid Build Coastguard Worker<td>a pointer to the original SAX user data pointer</td>
570*7c568831SAndroid Build Coastguard Worker</tr>
571*7c568831SAndroid Build Coastguard Worker<tr>
572*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
573*7c568831SAndroid Build Coastguard Worker<td>a pointer to a data structure needed to unplug the validation layer or NULL in case of errors.</td>
574*7c568831SAndroid Build Coastguard Worker</tr>
575*7c568831SAndroid Build Coastguard Worker</tbody>
576*7c568831SAndroid Build Coastguard Worker</table></div>
577*7c568831SAndroid Build Coastguard Worker</div>
578*7c568831SAndroid Build Coastguard Worker<hr>
579*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
580*7c568831SAndroid Build Coastguard Worker<h3>
581*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSAXUnplug"></a>xmlSchemaSAXUnplug ()</h3>
582*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaSAXUnplug		(<a href="libxml2-xmlschemas.html#xmlSchemaSAXPlugPtr">xmlSchemaSAXPlugPtr</a> plug)<br>
583*7c568831SAndroid Build Coastguard Worker</pre>
584*7c568831SAndroid Build Coastguard Worker<p>Unplug a SAX based validation layer in a SAX parsing event flow. The original pointers used in the call are restored.</p>
585*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
586*7c568831SAndroid Build Coastguard Worker<col align="left">
587*7c568831SAndroid Build Coastguard Worker<tbody>
588*7c568831SAndroid Build Coastguard Worker<tr>
589*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>plug</tt></i>:</span></td>
590*7c568831SAndroid Build Coastguard Worker<td>a data structure returned by <a href="libxml2-xmlschemas.html#xmlSchemaSAXPlug">xmlSchemaSAXPlug</a>
591*7c568831SAndroid Build Coastguard Worker</td>
592*7c568831SAndroid Build Coastguard Worker</tr>
593*7c568831SAndroid Build Coastguard Worker<tr>
594*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
595*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of failure.</td>
596*7c568831SAndroid Build Coastguard Worker</tr>
597*7c568831SAndroid Build Coastguard Worker</tbody>
598*7c568831SAndroid Build Coastguard Worker</table></div>
599*7c568831SAndroid Build Coastguard Worker</div>
600*7c568831SAndroid Build Coastguard Worker<hr>
601*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
602*7c568831SAndroid Build Coastguard Worker<h3>
603*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSetParserErrors"></a>xmlSchemaSetParserErrors ()</h3>
604*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaSetParserErrors	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> warn, <br>					 void * ctx)<br>
605*7c568831SAndroid Build Coastguard Worker</pre>
606*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: Use <a href="libxml2-xmlschemas.html#xmlSchemaSetParserStructuredErrors">xmlSchemaSetParserStructuredErrors</a>. Set the callback functions used to handle errors for a validation context</p>
607*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
608*7c568831SAndroid Build Coastguard Worker<col align="left">
609*7c568831SAndroid Build Coastguard Worker<tbody>
610*7c568831SAndroid Build Coastguard Worker<tr>
611*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
612*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
613*7c568831SAndroid Build Coastguard Worker</tr>
614*7c568831SAndroid Build Coastguard Worker<tr>
615*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>err</tt></i>:</span></td>
616*7c568831SAndroid Build Coastguard Worker<td>the error callback</td>
617*7c568831SAndroid Build Coastguard Worker</tr>
618*7c568831SAndroid Build Coastguard Worker<tr>
619*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>warn</tt></i>:</span></td>
620*7c568831SAndroid Build Coastguard Worker<td>the warning callback</td>
621*7c568831SAndroid Build Coastguard Worker</tr>
622*7c568831SAndroid Build Coastguard Worker<tr>
623*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
624*7c568831SAndroid Build Coastguard Worker<td>contextual data for the callbacks</td>
625*7c568831SAndroid Build Coastguard Worker</tr>
626*7c568831SAndroid Build Coastguard Worker</tbody>
627*7c568831SAndroid Build Coastguard Worker</table></div>
628*7c568831SAndroid Build Coastguard Worker</div>
629*7c568831SAndroid Build Coastguard Worker<hr>
630*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
631*7c568831SAndroid Build Coastguard Worker<h3>
632*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSetParserStructuredErrors"></a>xmlSchemaSetParserStructuredErrors ()</h3>
633*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaSetParserStructuredErrors	(<a href="libxml2-xmlschemas.html#xmlSchemaParserCtxtPtr">xmlSchemaParserCtxtPtr</a> ctxt, <br>						 <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> serror, <br>						 void * ctx)<br>
634*7c568831SAndroid Build Coastguard Worker</pre>
635*7c568831SAndroid Build Coastguard Worker<p>Set the structured error callback</p>
636*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
637*7c568831SAndroid Build Coastguard Worker<col align="left">
638*7c568831SAndroid Build Coastguard Worker<tbody>
639*7c568831SAndroid Build Coastguard Worker<tr>
640*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
641*7c568831SAndroid Build Coastguard Worker<td>a schema parser context</td>
642*7c568831SAndroid Build Coastguard Worker</tr>
643*7c568831SAndroid Build Coastguard Worker<tr>
644*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>serror</tt></i>:</span></td>
645*7c568831SAndroid Build Coastguard Worker<td>the structured error function</td>
646*7c568831SAndroid Build Coastguard Worker</tr>
647*7c568831SAndroid Build Coastguard Worker<tr>
648*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
649*7c568831SAndroid Build Coastguard Worker<td>the functions context</td>
650*7c568831SAndroid Build Coastguard Worker</tr>
651*7c568831SAndroid Build Coastguard Worker</tbody>
652*7c568831SAndroid Build Coastguard Worker</table></div>
653*7c568831SAndroid Build Coastguard Worker</div>
654*7c568831SAndroid Build Coastguard Worker<hr>
655*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
656*7c568831SAndroid Build Coastguard Worker<h3>
657*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSetValidErrors"></a>xmlSchemaSetValidErrors ()</h3>
658*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaSetValidErrors		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityErrorFunc">xmlSchemaValidityErrorFunc</a> err, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityWarningFunc">xmlSchemaValidityWarningFunc</a> warn, <br>					 void * ctx)<br>
659*7c568831SAndroid Build Coastguard Worker</pre>
660*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: Use <a href="libxml2-xmlschemas.html#xmlSchemaSetValidStructuredErrors">xmlSchemaSetValidStructuredErrors</a>. Set the error and warning callback information</p>
661*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
662*7c568831SAndroid Build Coastguard Worker<col align="left">
663*7c568831SAndroid Build Coastguard Worker<tbody>
664*7c568831SAndroid Build Coastguard Worker<tr>
665*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
666*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
667*7c568831SAndroid Build Coastguard Worker</tr>
668*7c568831SAndroid Build Coastguard Worker<tr>
669*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>err</tt></i>:</span></td>
670*7c568831SAndroid Build Coastguard Worker<td>the error function</td>
671*7c568831SAndroid Build Coastguard Worker</tr>
672*7c568831SAndroid Build Coastguard Worker<tr>
673*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>warn</tt></i>:</span></td>
674*7c568831SAndroid Build Coastguard Worker<td>the warning function</td>
675*7c568831SAndroid Build Coastguard Worker</tr>
676*7c568831SAndroid Build Coastguard Worker<tr>
677*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
678*7c568831SAndroid Build Coastguard Worker<td>the functions context</td>
679*7c568831SAndroid Build Coastguard Worker</tr>
680*7c568831SAndroid Build Coastguard Worker</tbody>
681*7c568831SAndroid Build Coastguard Worker</table></div>
682*7c568831SAndroid Build Coastguard Worker</div>
683*7c568831SAndroid Build Coastguard Worker<hr>
684*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
685*7c568831SAndroid Build Coastguard Worker<h3>
686*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSetValidOptions"></a>xmlSchemaSetValidOptions ()</h3>
687*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaSetValidOptions	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 int options)<br>
688*7c568831SAndroid Build Coastguard Worker</pre>
689*7c568831SAndroid Build Coastguard Worker<p>Sets the options to be used during the validation.</p>
690*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
691*7c568831SAndroid Build Coastguard Worker<col align="left">
692*7c568831SAndroid Build Coastguard Worker<tbody>
693*7c568831SAndroid Build Coastguard Worker<tr>
694*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
695*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
696*7c568831SAndroid Build Coastguard Worker</tr>
697*7c568831SAndroid Build Coastguard Worker<tr>
698*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td>
699*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-xmlschemas.html#xmlSchemaValidOption">xmlSchemaValidOption</a>
700*7c568831SAndroid Build Coastguard Worker</td>
701*7c568831SAndroid Build Coastguard Worker</tr>
702*7c568831SAndroid Build Coastguard Worker<tr>
703*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
704*7c568831SAndroid Build Coastguard Worker<td>0 in case of success, -1 in case of an API error.</td>
705*7c568831SAndroid Build Coastguard Worker</tr>
706*7c568831SAndroid Build Coastguard Worker</tbody>
707*7c568831SAndroid Build Coastguard Worker</table></div>
708*7c568831SAndroid Build Coastguard Worker</div>
709*7c568831SAndroid Build Coastguard Worker<hr>
710*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
711*7c568831SAndroid Build Coastguard Worker<h3>
712*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaSetValidStructuredErrors"></a>xmlSchemaSetValidStructuredErrors ()</h3>
713*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaSetValidStructuredErrors	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>						 <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> serror, <br>						 void * ctx)<br>
714*7c568831SAndroid Build Coastguard Worker</pre>
715*7c568831SAndroid Build Coastguard Worker<p>Set the structured error callback</p>
716*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
717*7c568831SAndroid Build Coastguard Worker<col align="left">
718*7c568831SAndroid Build Coastguard Worker<tbody>
719*7c568831SAndroid Build Coastguard Worker<tr>
720*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
721*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
722*7c568831SAndroid Build Coastguard Worker</tr>
723*7c568831SAndroid Build Coastguard Worker<tr>
724*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>serror</tt></i>:</span></td>
725*7c568831SAndroid Build Coastguard Worker<td>the structured error function</td>
726*7c568831SAndroid Build Coastguard Worker</tr>
727*7c568831SAndroid Build Coastguard Worker<tr>
728*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
729*7c568831SAndroid Build Coastguard Worker<td>the functions context</td>
730*7c568831SAndroid Build Coastguard Worker</tr>
731*7c568831SAndroid Build Coastguard Worker</tbody>
732*7c568831SAndroid Build Coastguard Worker</table></div>
733*7c568831SAndroid Build Coastguard Worker</div>
734*7c568831SAndroid Build Coastguard Worker<hr>
735*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
736*7c568831SAndroid Build Coastguard Worker<h3>
737*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidCtxtGetOptions"></a>xmlSchemaValidCtxtGetOptions ()</h3>
738*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidCtxtGetOptions	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt)<br>
739*7c568831SAndroid Build Coastguard Worker</pre>
740*7c568831SAndroid Build Coastguard Worker<p>Get the validation context options.</p>
741*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
742*7c568831SAndroid Build Coastguard Worker<col align="left">
743*7c568831SAndroid Build Coastguard Worker<tbody>
744*7c568831SAndroid Build Coastguard Worker<tr>
745*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
746*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
747*7c568831SAndroid Build Coastguard Worker</tr>
748*7c568831SAndroid Build Coastguard Worker<tr>
749*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
750*7c568831SAndroid Build Coastguard Worker<td>the option combination or -1 on error.</td>
751*7c568831SAndroid Build Coastguard Worker</tr>
752*7c568831SAndroid Build Coastguard Worker</tbody>
753*7c568831SAndroid Build Coastguard Worker</table></div>
754*7c568831SAndroid Build Coastguard Worker</div>
755*7c568831SAndroid Build Coastguard Worker<hr>
756*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
757*7c568831SAndroid Build Coastguard Worker<h3>
758*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidCtxtGetParserCtxt"></a>xmlSchemaValidCtxtGetParserCtxt ()</h3>
759*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlParserCtxtPtr">xmlParserCtxtPtr</a>	xmlSchemaValidCtxtGetParserCtxt	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt)<br>
760*7c568831SAndroid Build Coastguard Worker</pre>
761*7c568831SAndroid Build Coastguard Worker<p>allow access to the parser context of the schema validation context</p>
762*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
763*7c568831SAndroid Build Coastguard Worker<col align="left">
764*7c568831SAndroid Build Coastguard Worker<tbody>
765*7c568831SAndroid Build Coastguard Worker<tr>
766*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
767*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
768*7c568831SAndroid Build Coastguard Worker</tr>
769*7c568831SAndroid Build Coastguard Worker<tr>
770*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
771*7c568831SAndroid Build Coastguard Worker<td>the parser context of the schema validation context or NULL in case of error.</td>
772*7c568831SAndroid Build Coastguard Worker</tr>
773*7c568831SAndroid Build Coastguard Worker</tbody>
774*7c568831SAndroid Build Coastguard Worker</table></div>
775*7c568831SAndroid Build Coastguard Worker</div>
776*7c568831SAndroid Build Coastguard Worker<hr>
777*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
778*7c568831SAndroid Build Coastguard Worker<h3>
779*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateDoc"></a>xmlSchemaValidateDoc ()</h3>
780*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidateDoc		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br>
781*7c568831SAndroid Build Coastguard Worker</pre>
782*7c568831SAndroid Build Coastguard Worker<p>Validate a document tree in memory.</p>
783*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
784*7c568831SAndroid Build Coastguard Worker<col align="left">
785*7c568831SAndroid Build Coastguard Worker<tbody>
786*7c568831SAndroid Build Coastguard Worker<tr>
787*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
788*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
789*7c568831SAndroid Build Coastguard Worker</tr>
790*7c568831SAndroid Build Coastguard Worker<tr>
791*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td>
792*7c568831SAndroid Build Coastguard Worker<td>a parsed document tree</td>
793*7c568831SAndroid Build Coastguard Worker</tr>
794*7c568831SAndroid Build Coastguard Worker<tr>
795*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
796*7c568831SAndroid Build Coastguard Worker<td>0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.</td>
797*7c568831SAndroid Build Coastguard Worker</tr>
798*7c568831SAndroid Build Coastguard Worker</tbody>
799*7c568831SAndroid Build Coastguard Worker</table></div>
800*7c568831SAndroid Build Coastguard Worker</div>
801*7c568831SAndroid Build Coastguard Worker<hr>
802*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
803*7c568831SAndroid Build Coastguard Worker<h3>
804*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateFile"></a>xmlSchemaValidateFile ()</h3>
805*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidateFile		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 const char * filename, <br>					 int options)<br>
806*7c568831SAndroid Build Coastguard Worker</pre>
807*7c568831SAndroid Build Coastguard Worker<p>Do a schemas validation of the given resource, it will use the SAX streamable validation internally.</p>
808*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
809*7c568831SAndroid Build Coastguard Worker<col align="left">
810*7c568831SAndroid Build Coastguard Worker<tbody>
811*7c568831SAndroid Build Coastguard Worker<tr>
812*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
813*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
814*7c568831SAndroid Build Coastguard Worker</tr>
815*7c568831SAndroid Build Coastguard Worker<tr>
816*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>filename</tt></i>:</span></td>
817*7c568831SAndroid Build Coastguard Worker<td>the URI of the instance</td>
818*7c568831SAndroid Build Coastguard Worker</tr>
819*7c568831SAndroid Build Coastguard Worker<tr>
820*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td>
821*7c568831SAndroid Build Coastguard Worker<td>a future set of options, currently unused</td>
822*7c568831SAndroid Build Coastguard Worker</tr>
823*7c568831SAndroid Build Coastguard Worker<tr>
824*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
825*7c568831SAndroid Build Coastguard Worker<td>0 if the document is valid, a positive error code number otherwise and -1 in case of an internal or API error.</td>
826*7c568831SAndroid Build Coastguard Worker</tr>
827*7c568831SAndroid Build Coastguard Worker</tbody>
828*7c568831SAndroid Build Coastguard Worker</table></div>
829*7c568831SAndroid Build Coastguard Worker</div>
830*7c568831SAndroid Build Coastguard Worker<hr>
831*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
832*7c568831SAndroid Build Coastguard Worker<h3>
833*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateOneElement"></a>xmlSchemaValidateOneElement ()</h3>
834*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidateOneElement	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> elem)<br>
835*7c568831SAndroid Build Coastguard Worker</pre>
836*7c568831SAndroid Build Coastguard Worker<p>Validate a branch of a tree, starting with the given @elem.</p>
837*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
838*7c568831SAndroid Build Coastguard Worker<col align="left">
839*7c568831SAndroid Build Coastguard Worker<tbody>
840*7c568831SAndroid Build Coastguard Worker<tr>
841*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
842*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
843*7c568831SAndroid Build Coastguard Worker</tr>
844*7c568831SAndroid Build Coastguard Worker<tr>
845*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>elem</tt></i>:</span></td>
846*7c568831SAndroid Build Coastguard Worker<td>an element node</td>
847*7c568831SAndroid Build Coastguard Worker</tr>
848*7c568831SAndroid Build Coastguard Worker<tr>
849*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
850*7c568831SAndroid Build Coastguard Worker<td>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.</td>
851*7c568831SAndroid Build Coastguard Worker</tr>
852*7c568831SAndroid Build Coastguard Worker</tbody>
853*7c568831SAndroid Build Coastguard Worker</table></div>
854*7c568831SAndroid Build Coastguard Worker</div>
855*7c568831SAndroid Build Coastguard Worker<hr>
856*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
857*7c568831SAndroid Build Coastguard Worker<h3>
858*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateSetFilename"></a>xmlSchemaValidateSetFilename ()</h3>
859*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaValidateSetFilename	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> vctxt, <br>					 const char * filename)<br>
860*7c568831SAndroid Build Coastguard Worker</pre>
861*7c568831SAndroid Build Coastguard Worker<p>Workaround to provide file error reporting information when this is not provided by current APIs</p>
862*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
863*7c568831SAndroid Build Coastguard Worker<col align="left">
864*7c568831SAndroid Build Coastguard Worker<tbody>
865*7c568831SAndroid Build Coastguard Worker<tr>
866*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>vctxt</tt></i>:</span></td>
867*7c568831SAndroid Build Coastguard Worker<td>the schema validation context</td>
868*7c568831SAndroid Build Coastguard Worker</tr>
869*7c568831SAndroid Build Coastguard Worker<tr>
870*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>filename</tt></i>:</span></td>
871*7c568831SAndroid Build Coastguard Worker<td>the file name</td>
872*7c568831SAndroid Build Coastguard Worker</tr>
873*7c568831SAndroid Build Coastguard Worker</tbody>
874*7c568831SAndroid Build Coastguard Worker</table></div>
875*7c568831SAndroid Build Coastguard Worker</div>
876*7c568831SAndroid Build Coastguard Worker<hr>
877*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
878*7c568831SAndroid Build Coastguard Worker<h3>
879*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateSetLocator"></a>xmlSchemaValidateSetLocator ()</h3>
880*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlSchemaValidateSetLocator	(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> vctxt, <br>					 <a href="libxml2-xmlschemas.html#xmlSchemaValidityLocatorFunc">xmlSchemaValidityLocatorFunc</a> f, <br>					 void * ctxt)<br>
881*7c568831SAndroid Build Coastguard Worker</pre>
882*7c568831SAndroid Build Coastguard Worker<p>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.</p>
883*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
884*7c568831SAndroid Build Coastguard Worker<col align="left">
885*7c568831SAndroid Build Coastguard Worker<tbody>
886*7c568831SAndroid Build Coastguard Worker<tr>
887*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>vctxt</tt></i>:</span></td>
888*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
889*7c568831SAndroid Build Coastguard Worker</tr>
890*7c568831SAndroid Build Coastguard Worker<tr>
891*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>f</tt></i>:</span></td>
892*7c568831SAndroid Build Coastguard Worker<td>the locator function pointer</td>
893*7c568831SAndroid Build Coastguard Worker</tr>
894*7c568831SAndroid Build Coastguard Worker<tr>
895*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
896*7c568831SAndroid Build Coastguard Worker<td>the locator context</td>
897*7c568831SAndroid Build Coastguard Worker</tr>
898*7c568831SAndroid Build Coastguard Worker</tbody>
899*7c568831SAndroid Build Coastguard Worker</table></div>
900*7c568831SAndroid Build Coastguard Worker</div>
901*7c568831SAndroid Build Coastguard Worker<hr>
902*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
903*7c568831SAndroid Build Coastguard Worker<h3>
904*7c568831SAndroid Build Coastguard Worker<a name="xmlSchemaValidateStream"></a>xmlSchemaValidateStream ()</h3>
905*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlSchemaValidateStream		(<a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br>					 <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br>					 <a href="libxml2-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc, <br>					 <a href="libxml2-tree.html#xmlSAXHandlerPtr">xmlSAXHandlerPtr</a> sax, <br>					 void * user_data)<br>
906*7c568831SAndroid Build Coastguard Worker</pre>
907*7c568831SAndroid Build Coastguard Worker<p>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.</p>
908*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
909*7c568831SAndroid Build Coastguard Worker<col align="left">
910*7c568831SAndroid Build Coastguard Worker<tbody>
911*7c568831SAndroid Build Coastguard Worker<tr>
912*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td>
913*7c568831SAndroid Build Coastguard Worker<td>a schema validation context</td>
914*7c568831SAndroid Build Coastguard Worker</tr>
915*7c568831SAndroid Build Coastguard Worker<tr>
916*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>input</tt></i>:</span></td>
917*7c568831SAndroid Build Coastguard Worker<td>the input to use for reading the data</td>
918*7c568831SAndroid Build Coastguard Worker</tr>
919*7c568831SAndroid Build Coastguard Worker<tr>
920*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>enc</tt></i>:</span></td>
921*7c568831SAndroid Build Coastguard Worker<td>an optional encoding information</td>
922*7c568831SAndroid Build Coastguard Worker</tr>
923*7c568831SAndroid Build Coastguard Worker<tr>
924*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>sax</tt></i>:</span></td>
925*7c568831SAndroid Build Coastguard Worker<td>a SAX handler for the resulting events</td>
926*7c568831SAndroid Build Coastguard Worker</tr>
927*7c568831SAndroid Build Coastguard Worker<tr>
928*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>user_data</tt></i>:</span></td>
929*7c568831SAndroid Build Coastguard Worker<td>the context to provide to the SAX handler.</td>
930*7c568831SAndroid Build Coastguard Worker</tr>
931*7c568831SAndroid Build Coastguard Worker<tr>
932*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
933*7c568831SAndroid Build Coastguard Worker<td>0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.</td>
934*7c568831SAndroid Build Coastguard Worker</tr>
935*7c568831SAndroid Build Coastguard Worker</tbody>
936*7c568831SAndroid Build Coastguard Worker</table></div>
937*7c568831SAndroid Build Coastguard Worker</div>
938*7c568831SAndroid Build Coastguard Worker<hr>
939*7c568831SAndroid Build Coastguard Worker</div>
940*7c568831SAndroid Build Coastguard Worker</div>
941*7c568831SAndroid Build Coastguard Worker</body>
942*7c568831SAndroid Build Coastguard Worker</html>
943