blob: d7ec1c031be39ca6a4612510f2f210fbd422dce0 [file] [log] [blame]
Daniel Veillard80ce3732002-10-07 17:39:30 +00001<HTML
2><HEAD
3><TITLE
4>xmlschemas</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8"><LINK
9REL="HOME"
10TITLE="Gnome XML Library Reference Manual"
11HREF="book1.html"><LINK
12REL="UP"
13TITLE="Libxml Library Reference"
14HREF="libxml-lib.html"><LINK
15REL="PREVIOUS"
16TITLE="xmlunicode"
17HREF="libxml-xmlunicode.html"><LINK
18REL="NEXT"
19TITLE="xmlschemastypes"
20HREF="libxml-xmlschemastypes.html"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31WIDTH="100%"
32BORDER="0"
33BGCOLOR="#000000"
34CELLPADDING="1"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="4"
39ALIGN="center"
40><FONT
41COLOR="#FFFFFF"
42SIZE="5"
43>Gnome XML Library Reference Manual</FONT
44></TH
45></TR
46><TR
47><TD
48WIDTH="25%"
49BGCOLOR="#C00000"
50ALIGN="left"
51><A
52HREF="libxml-xmlunicode.html"
53><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; Previous Page</B
58></FONT
59></A
60></TD
61><TD
62WIDTH="25%"
63BGCOLOR="#0000C0"
64ALIGN="center"
65><FONT
66COLOR="#FFFFFF"
67SIZE="3"
68><B
69><A
70HREF="book1.html"
71><FONT
72COLOR="#FFFFFF"
73SIZE="3"
74><B
75>Home</B
76></FONT
77></A
78></B
79></FONT
80></TD
81><TD
82WIDTH="25%"
83BGCOLOR="#00C000"
84ALIGN="center"
85><FONT
86COLOR="#FFFFFF"
87SIZE="3"
88><B
89><A
90HREF="libxml-lib.html"
91><FONT
92COLOR="#FFFFFF"
93SIZE="3"
94><B
95>Up</B
96></FONT
97></A
98></B
99></FONT
100></TD
101><TD
102WIDTH="25%"
103BGCOLOR="#C00000"
104ALIGN="right"
105><A
106HREF="libxml-xmlschemastypes.html"
107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
115></TR
116></TABLE
117></DIV
118><H1
119><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000120NAME="LIBXML-XMLSCHEMAS"
121></A
122>xmlschemas</H1
Daniel Veillard80ce3732002-10-07 17:39:30 +0000123><DIV
124CLASS="REFNAMEDIV"
125><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000126NAME="AEN33172"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000127></A
128><H2
129>Name</H2
130>xmlschemas&nbsp;--&nbsp;</DIV
131><DIV
132CLASS="REFSYNOPSISDIV"
133><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000134NAME="AEN33175"
Daniel Veillardaec63562003-03-23 20:42:17 +0000135></A
136><H2
Daniel Veillard80ce3732002-10-07 17:39:30 +0000137>Synopsis</H2
138><TABLE
139BORDER="0"
140BGCOLOR="#D6E8FF"
141WIDTH="100%"
142CELLPADDING="6"
143><TR
144><TD
145><PRE
146CLASS="SYNOPSIS"
147>&#13;
148
149enum <A
150HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDERROR"
151>xmlSchemaValidError</A
152>;
153struct <A
154HREF="libxml-xmlschemas.html#XMLSCHEMA"
155>xmlSchema</A
156>;
157typedef <A
158HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
159>xmlSchemaPtr</A
160>;
161void (<A
162HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
163>*xmlSchemaValidityErrorFunc</A
164>) (void *ctx,
165 const char *msg,
166 ...);
167void (<A
168HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
169>*xmlSchemaValidityWarningFunc</A
170>) (void *ctx,
171 const char *msg,
172 ...);
173struct <A
174HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXT"
175>xmlSchemaParserCtxt</A
176>;
177typedef <A
178HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
179>xmlSchemaParserCtxtPtr</A
180>;
181struct <A
182HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXT"
183>xmlSchemaValidCtxt</A
184>;
185typedef <A
186HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
187>xmlSchemaValidCtxtPtr</A
188>;
189<A
190HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
191>xmlSchemaParserCtxtPtr</A
192> <A
193HREF="libxml-xmlschemas.html#XMLSCHEMANEWPARSERCTXT"
194>xmlSchemaNewParserCtxt</A
195>
196 (const char *URL);
Daniel Veillardaec63562003-03-23 20:42:17 +0000197<A
198HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
199>xmlSchemaParserCtxtPtr</A
200> <A
201HREF="libxml-xmlschemas.html#XMLSCHEMANEWMEMPARSERCTXT"
202>xmlSchemaNewMemParserCtxt</A
203>
204 (const char *buffer,
205 int size);
Daniel Veillard80ce3732002-10-07 17:39:30 +0000206void <A
207HREF="libxml-xmlschemas.html#XMLSCHEMAFREEPARSERCTXT"
208>xmlSchemaFreeParserCtxt</A
209> (<A
210HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
211>xmlSchemaParserCtxtPtr</A
212> ctxt);
213void <A
214HREF="libxml-xmlschemas.html#XMLSCHEMASETPARSERERRORS"
215>xmlSchemaSetParserErrors</A
216> (<A
217HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
218>xmlSchemaParserCtxtPtr</A
219> ctxt,
220 <A
221HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
222>xmlSchemaValidityErrorFunc</A
223> err,
224 <A
225HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
226>xmlSchemaValidityWarningFunc</A
227> warn,
228 void *ctx);
229<A
230HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
231>xmlSchemaPtr</A
232> <A
233HREF="libxml-xmlschemas.html#XMLSCHEMAPARSE"
234>xmlSchemaParse</A
235> (<A
236HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
237>xmlSchemaParserCtxtPtr</A
238> ctxt);
239void <A
240HREF="libxml-xmlschemas.html#XMLSCHEMAFREE"
241>xmlSchemaFree</A
242> (<A
243HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
244>xmlSchemaPtr</A
245> schema);
246void <A
247HREF="libxml-xmlschemas.html#XMLSCHEMADUMP"
248>xmlSchemaDump</A
249> (<GTKDOCLINK
250HREF="FILE-CAPS"
251>FILE</GTKDOCLINK
252> *output,
253 <A
254HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
255>xmlSchemaPtr</A
256> schema);
257void <A
258HREF="libxml-xmlschemas.html#XMLSCHEMASETVALIDERRORS"
259>xmlSchemaSetValidErrors</A
260> (<A
261HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
262>xmlSchemaValidCtxtPtr</A
263> ctxt,
264 <A
265HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
266>xmlSchemaValidityErrorFunc</A
267> err,
268 <A
269HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
270>xmlSchemaValidityWarningFunc</A
271> warn,
272 void *ctx);
273<A
274HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
275>xmlSchemaValidCtxtPtr</A
276> <A
277HREF="libxml-xmlschemas.html#XMLSCHEMANEWVALIDCTXT"
278>xmlSchemaNewValidCtxt</A
279> (<A
280HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
281>xmlSchemaPtr</A
282> schema);
283void <A
284HREF="libxml-xmlschemas.html#XMLSCHEMAFREEVALIDCTXT"
285>xmlSchemaFreeValidCtxt</A
286> (<A
287HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
288>xmlSchemaValidCtxtPtr</A
289> ctxt);
290int <A
291HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDATEDOC"
292>xmlSchemaValidateDoc</A
293> (<A
294HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
295>xmlSchemaValidCtxtPtr</A
296> ctxt,
297 <A
298HREF="libxml-tree.html#XMLDOCPTR"
299>xmlDocPtr</A
300> instance);
301int <A
302HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDATESTREAM"
303>xmlSchemaValidateStream</A
304> (<A
305HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
306>xmlSchemaValidCtxtPtr</A
307> ctxt,
308 <A
309HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
310>xmlParserInputBufferPtr</A
311> input,
312 <A
313HREF="libxml-encoding.html#XMLCHARENCODING"
314>xmlCharEncoding</A
315> enc,
316 <A
317HREF="libxml-tree.html#XMLSAXHANDLERPTR"
318>xmlSAXHandlerPtr</A
319> sax,
320 void *user_data);</PRE
321></TD
322></TR
323></TABLE
324></DIV
325><DIV
326CLASS="REFSECT1"
327><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000328NAME="AEN33222"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000329></A
330><H2
331>Description</H2
332><P
333></P
334></DIV
335><DIV
336CLASS="REFSECT1"
337><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000338NAME="AEN33225"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000339></A
340><H2
341>Details</H2
342><DIV
343CLASS="REFSECT2"
344><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000345NAME="AEN33227"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000346></A
347><H3
348><A
349NAME="XMLSCHEMAVALIDERROR"
350></A
351>enum xmlSchemaValidError</H3
352><TABLE
353BORDER="0"
354BGCOLOR="#D6E8FF"
355WIDTH="100%"
356CELLPADDING="6"
357><TR
358><TD
359><PRE
360CLASS="PROGRAMLISTING"
361>typedef enum {
362 XML_SCHEMAS_ERR_OK = 0,
363 XML_SCHEMAS_ERR_NOROOT = 1,
364 XML_SCHEMAS_ERR_UNDECLAREDELEM,
365 XML_SCHEMAS_ERR_NOTTOPLEVEL,
366 XML_SCHEMAS_ERR_MISSING,
367 XML_SCHEMAS_ERR_WRONGELEM,
368 XML_SCHEMAS_ERR_NOTYPE,
369 XML_SCHEMAS_ERR_NOROLLBACK,
370 XML_SCHEMAS_ERR_ISABSTRACT,
371 XML_SCHEMAS_ERR_NOTEMPTY,
372 XML_SCHEMAS_ERR_ELEMCONT,
373 XML_SCHEMAS_ERR_HAVEDEFAULT,
374 XML_SCHEMAS_ERR_NOTNILLABLE,
375 XML_SCHEMAS_ERR_EXTRACONTENT,
376 XML_SCHEMAS_ERR_INVALIDATTR,
377 XML_SCHEMAS_ERR_INVALIDELEM,
378 XML_SCHEMAS_ERR_NOTDETERMINIST,
379 XML_SCHEMAS_ERR_CONSTRUCT,
380 XML_SCHEMAS_ERR_INTERNAL,
381 XML_SCHEMAS_ERR_NOTSIMPLE,
382 XML_SCHEMAS_ERR_ATTRUNKNOWN,
383 XML_SCHEMAS_ERR_ATTRINVALID,
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000384 XML_SCHEMAS_ERR_VALUE,
Daniel Veillard80ce3732002-10-07 17:39:30 +0000385 XML_SCHEMAS_ERR_,
386 XML_SCHEMAS_ERR_XXX
387} xmlSchemaValidError;</PRE
388></TD
389></TR
390></TABLE
391><P
392></P
393></DIV
394><HR><DIV
395CLASS="REFSECT2"
396><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000397NAME="AEN33232"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000398></A
399><H3
400><A
401NAME="XMLSCHEMA"
402></A
403>struct xmlSchema</H3
404><TABLE
405BORDER="0"
406BGCOLOR="#D6E8FF"
407WIDTH="100%"
408CELLPADDING="6"
409><TR
410><TD
411><PRE
412CLASS="PROGRAMLISTING"
413>struct xmlSchema {
414 xmlChar *name; /* schema name */
415 xmlChar *targetNamespace; /* the target namespace */
416 xmlChar *version;
417 xmlChar *id;
418 xmlDocPtr doc;
419 xmlSchemaAnnotPtr annot;
420 int flags;
421
422 xmlHashTablePtr typeDecl;
423 xmlHashTablePtr attrDecl;
424 xmlHashTablePtr attrgrpDecl;
425 xmlHashTablePtr elemDecl;
426 xmlHashTablePtr notaDecl;
Daniel Veillardaec63562003-03-23 20:42:17 +0000427
428 xmlHashTablePtr schemasImports;
429
430 void *_private; /* unused by the library for users or bindings */
Daniel Veillard80ce3732002-10-07 17:39:30 +0000431};</PRE
432></TD
433></TR
434></TABLE
435><P
436></P
437></DIV
438><HR><DIV
439CLASS="REFSECT2"
440><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000441NAME="AEN33237"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000442></A
443><H3
444><A
445NAME="XMLSCHEMAPTR"
446></A
447>xmlSchemaPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000448><P
449></P
450></DIV
451><HR><DIV
452CLASS="REFSECT2"
453><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000454NAME="AEN33241"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000455></A
456><H3
457><A
458NAME="XMLSCHEMAVALIDITYERRORFUNC"
459></A
460>xmlSchemaValidityErrorFunc ()</H3
461><TABLE
462BORDER="0"
463BGCOLOR="#D6E8FF"
464WIDTH="100%"
465CELLPADDING="6"
466><TR
467><TD
468><PRE
469CLASS="PROGRAMLISTING"
470>void (*xmlSchemaValidityErrorFunc) (void *ctx,
471 const char *msg,
472 ...);</PRE
473></TD
474></TR
475></TABLE
476><P
477></P
478><DIV
479CLASS="INFORMALTABLE"
480><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000481NAME="AEN33246"
Daniel Veillardaec63562003-03-23 20:42:17 +0000482></A
483><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000484></P
485><TABLE
486BORDER="0"
487WIDTH="100%"
488BGCOLOR="#FFD0D0"
489CELLSPACING="0"
490CELLPADDING="4"
491CLASS="CALSTABLE"
492><TBODY
493><TR
494><TD
495WIDTH="20%"
496ALIGN="RIGHT"
497VALIGN="TOP"
498><TT
499CLASS="PARAMETER"
500><I
501>ctx</I
502></TT
503>&nbsp;:</TD
504><TD
505WIDTH="80%"
506ALIGN="LEFT"
507VALIGN="TOP"
508>&nbsp;</TD
509></TR
510><TR
511><TD
512WIDTH="20%"
513ALIGN="RIGHT"
514VALIGN="TOP"
515><TT
516CLASS="PARAMETER"
517><I
518>msg</I
519></TT
520>&nbsp;:</TD
521><TD
522WIDTH="80%"
523ALIGN="LEFT"
524VALIGN="TOP"
525>&nbsp;</TD
526></TR
527><TR
528><TD
529WIDTH="20%"
530ALIGN="RIGHT"
531VALIGN="TOP"
532><TT
533CLASS="PARAMETER"
534><I
535>...</I
536></TT
537>&nbsp;:</TD
538><TD
539WIDTH="80%"
540ALIGN="LEFT"
541VALIGN="TOP"
542>&nbsp;</TD
543></TR
544></TBODY
545></TABLE
546><P
547></P
548></DIV
549></DIV
550><HR><DIV
551CLASS="REFSECT2"
552><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000553NAME="AEN33263"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000554></A
555><H3
556><A
Daniel Veillard48267432002-10-18 11:21:38 +0000557NAME="XMLSCHEMAVALIDITYWARNINGFUNC"
558></A
559>xmlSchemaValidityWarningFunc ()</H3
560><TABLE
561BORDER="0"
562BGCOLOR="#D6E8FF"
563WIDTH="100%"
564CELLPADDING="6"
565><TR
566><TD
567><PRE
568CLASS="PROGRAMLISTING"
569>void (*xmlSchemaValidityWarningFunc) (void *ctx,
570 const char *msg,
571 ...);</PRE
572></TD
573></TR
574></TABLE
575><P
576></P
577><DIV
578CLASS="INFORMALTABLE"
579><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000580NAME="AEN33268"
Daniel Veillardaec63562003-03-23 20:42:17 +0000581></A
582><P
Daniel Veillard48267432002-10-18 11:21:38 +0000583></P
584><TABLE
585BORDER="0"
586WIDTH="100%"
587BGCOLOR="#FFD0D0"
588CELLSPACING="0"
589CELLPADDING="4"
590CLASS="CALSTABLE"
591><TBODY
592><TR
593><TD
594WIDTH="20%"
595ALIGN="RIGHT"
596VALIGN="TOP"
597><TT
598CLASS="PARAMETER"
599><I
600>ctx</I
601></TT
602>&nbsp;:</TD
603><TD
604WIDTH="80%"
605ALIGN="LEFT"
606VALIGN="TOP"
607>&nbsp;</TD
608></TR
609><TR
610><TD
611WIDTH="20%"
612ALIGN="RIGHT"
613VALIGN="TOP"
614><TT
615CLASS="PARAMETER"
616><I
617>msg</I
618></TT
619>&nbsp;:</TD
620><TD
621WIDTH="80%"
622ALIGN="LEFT"
623VALIGN="TOP"
624>&nbsp;</TD
625></TR
626><TR
627><TD
628WIDTH="20%"
629ALIGN="RIGHT"
630VALIGN="TOP"
631><TT
632CLASS="PARAMETER"
633><I
634>...</I
635></TT
636>&nbsp;:</TD
637><TD
638WIDTH="80%"
639ALIGN="LEFT"
640VALIGN="TOP"
641>&nbsp;</TD
642></TR
643></TBODY
644></TABLE
645><P
646></P
647></DIV
648></DIV
649><HR><DIV
650CLASS="REFSECT2"
651><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000652NAME="AEN33285"
Daniel Veillard48267432002-10-18 11:21:38 +0000653></A
654><H3
655><A
Daniel Veillard80ce3732002-10-07 17:39:30 +0000656NAME="XMLSCHEMAPARSERCTXT"
657></A
658>struct xmlSchemaParserCtxt</H3
659><TABLE
660BORDER="0"
661BGCOLOR="#D6E8FF"
662WIDTH="100%"
663CELLPADDING="6"
664><TR
665><TD
666><PRE
667CLASS="PROGRAMLISTING"
668>struct xmlSchemaParserCtxt;</PRE
669></TD
670></TR
671></TABLE
672><P
673></P
674></DIV
675><HR><DIV
676CLASS="REFSECT2"
677><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000678NAME="AEN33290"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000679></A
680><H3
681><A
682NAME="XMLSCHEMAPARSERCTXTPTR"
683></A
684>xmlSchemaParserCtxtPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000685><P
686></P
687></DIV
688><HR><DIV
689CLASS="REFSECT2"
690><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000691NAME="AEN33294"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000692></A
693><H3
694><A
695NAME="XMLSCHEMAVALIDCTXT"
696></A
697>struct xmlSchemaValidCtxt</H3
698><TABLE
699BORDER="0"
700BGCOLOR="#D6E8FF"
701WIDTH="100%"
702CELLPADDING="6"
703><TR
704><TD
705><PRE
706CLASS="PROGRAMLISTING"
707>struct xmlSchemaValidCtxt;</PRE
708></TD
709></TR
710></TABLE
711><P
712>A Schemas validation context</P
713><P
714></P
715></DIV
716><HR><DIV
717CLASS="REFSECT2"
718><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000719NAME="AEN33300"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000720></A
721><H3
722><A
723NAME="XMLSCHEMAVALIDCTXTPTR"
724></A
725>xmlSchemaValidCtxtPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000726><P
727></P
728></DIV
729><HR><DIV
730CLASS="REFSECT2"
731><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000732NAME="AEN33304"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000733></A
734><H3
735><A
736NAME="XMLSCHEMANEWPARSERCTXT"
737></A
738>xmlSchemaNewParserCtxt ()</H3
739><TABLE
740BORDER="0"
741BGCOLOR="#D6E8FF"
742WIDTH="100%"
743CELLPADDING="6"
744><TR
745><TD
746><PRE
747CLASS="PROGRAMLISTING"
748><A
749HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
750>xmlSchemaParserCtxtPtr</A
751> xmlSchemaNewParserCtxt
752 (const char *URL);</PRE
753></TD
754></TR
755></TABLE
756><P
757>Create an XML Schemas parse context for that file/resource expected
758to contain an XML Schemas file.</P
759><P
760></P
761><DIV
762CLASS="INFORMALTABLE"
763><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000764NAME="AEN33311"
Daniel Veillardaec63562003-03-23 20:42:17 +0000765></A
766><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000767></P
768><TABLE
769BORDER="0"
770WIDTH="100%"
771BGCOLOR="#FFD0D0"
772CELLSPACING="0"
773CELLPADDING="4"
774CLASS="CALSTABLE"
775><TBODY
776><TR
777><TD
778WIDTH="20%"
779ALIGN="RIGHT"
780VALIGN="TOP"
781><TT
782CLASS="PARAMETER"
783><I
784>URL</I
785></TT
786>&nbsp;:</TD
787><TD
788WIDTH="80%"
789ALIGN="LEFT"
790VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000791>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000792></TR
793><TR
794><TD
795WIDTH="20%"
796ALIGN="RIGHT"
797VALIGN="TOP"
798><SPAN
799CLASS="emphasis"
800><I
801CLASS="EMPHASIS"
802>Returns</I
803></SPAN
804> :</TD
805><TD
806WIDTH="80%"
807ALIGN="LEFT"
808VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000809>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000810></TR
811></TBODY
812></TABLE
813><P
814></P
815></DIV
816></DIV
817><HR><DIV
818CLASS="REFSECT2"
819><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000820NAME="AEN33324"
Daniel Veillardaec63562003-03-23 20:42:17 +0000821></A
822><H3
823><A
824NAME="XMLSCHEMANEWMEMPARSERCTXT"
825></A
826>xmlSchemaNewMemParserCtxt ()</H3
827><TABLE
828BORDER="0"
829BGCOLOR="#D6E8FF"
830WIDTH="100%"
831CELLPADDING="6"
832><TR
833><TD
834><PRE
835CLASS="PROGRAMLISTING"
836><A
837HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
838>xmlSchemaParserCtxtPtr</A
839> xmlSchemaNewMemParserCtxt
840 (const char *buffer,
841 int size);</PRE
842></TD
843></TR
844></TABLE
845><P
846>Create an XML Schemas parse context for that memory buffer expected
847to contain an XML Schemas file.</P
848><P
849></P
850><DIV
851CLASS="INFORMALTABLE"
852><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000853NAME="AEN33331"
Daniel Veillardaec63562003-03-23 20:42:17 +0000854></A
855><P
856></P
857><TABLE
858BORDER="0"
859WIDTH="100%"
860BGCOLOR="#FFD0D0"
861CELLSPACING="0"
862CELLPADDING="4"
863CLASS="CALSTABLE"
864><TBODY
865><TR
866><TD
867WIDTH="20%"
868ALIGN="RIGHT"
869VALIGN="TOP"
870><TT
871CLASS="PARAMETER"
872><I
873>buffer</I
874></TT
875>&nbsp;:</TD
876><TD
877WIDTH="80%"
878ALIGN="LEFT"
879VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000880>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000881></TR
882><TR
883><TD
884WIDTH="20%"
885ALIGN="RIGHT"
886VALIGN="TOP"
887><TT
888CLASS="PARAMETER"
889><I
890>size</I
891></TT
892>&nbsp;:</TD
893><TD
894WIDTH="80%"
895ALIGN="LEFT"
896VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000897>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000898></TR
899><TR
900><TD
901WIDTH="20%"
902ALIGN="RIGHT"
903VALIGN="TOP"
904><SPAN
905CLASS="emphasis"
906><I
907CLASS="EMPHASIS"
908>Returns</I
909></SPAN
910> :</TD
911><TD
912WIDTH="80%"
913ALIGN="LEFT"
914VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000915>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000916></TR
917></TBODY
918></TABLE
919><P
920></P
921></DIV
922></DIV
923><HR><DIV
924CLASS="REFSECT2"
925><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000926NAME="AEN33348"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000927></A
928><H3
929><A
930NAME="XMLSCHEMAFREEPARSERCTXT"
931></A
932>xmlSchemaFreeParserCtxt ()</H3
933><TABLE
934BORDER="0"
935BGCOLOR="#D6E8FF"
936WIDTH="100%"
937CELLPADDING="6"
938><TR
939><TD
940><PRE
941CLASS="PROGRAMLISTING"
942>void xmlSchemaFreeParserCtxt (<A
943HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
944>xmlSchemaParserCtxtPtr</A
945> ctxt);</PRE
946></TD
947></TR
948></TABLE
949><P
950>Free the resources associated to the schema parser context</P
951><P
952></P
953><DIV
954CLASS="INFORMALTABLE"
955><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000956NAME="AEN33355"
Daniel Veillardaec63562003-03-23 20:42:17 +0000957></A
958><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000959></P
960><TABLE
961BORDER="0"
962WIDTH="100%"
963BGCOLOR="#FFD0D0"
964CELLSPACING="0"
965CELLPADDING="4"
966CLASS="CALSTABLE"
967><TBODY
968><TR
969><TD
970WIDTH="20%"
971ALIGN="RIGHT"
972VALIGN="TOP"
973><TT
974CLASS="PARAMETER"
975><I
976>ctxt</I
977></TT
978>&nbsp;:</TD
979><TD
980WIDTH="80%"
981ALIGN="LEFT"
982VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000983>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000984></TR
985></TBODY
986></TABLE
987><P
988></P
989></DIV
990></DIV
991><HR><DIV
992CLASS="REFSECT2"
993><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +0000994NAME="AEN33364"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000995></A
996><H3
997><A
998NAME="XMLSCHEMASETPARSERERRORS"
999></A
1000>xmlSchemaSetParserErrors ()</H3
1001><TABLE
1002BORDER="0"
1003BGCOLOR="#D6E8FF"
1004WIDTH="100%"
1005CELLPADDING="6"
1006><TR
1007><TD
1008><PRE
1009CLASS="PROGRAMLISTING"
1010>void xmlSchemaSetParserErrors (<A
1011HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1012>xmlSchemaParserCtxtPtr</A
1013> ctxt,
1014 <A
1015HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1016>xmlSchemaValidityErrorFunc</A
1017> err,
1018 <A
1019HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1020>xmlSchemaValidityWarningFunc</A
1021> warn,
1022 void *ctx);</PRE
1023></TD
1024></TR
1025></TABLE
1026><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001027>Set the callback functions used to handle errors for a validation context</P
1028><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001029></P
1030><DIV
1031CLASS="INFORMALTABLE"
1032><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001033NAME="AEN33373"
Daniel Veillardaec63562003-03-23 20:42:17 +00001034></A
1035><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001036></P
1037><TABLE
1038BORDER="0"
1039WIDTH="100%"
1040BGCOLOR="#FFD0D0"
1041CELLSPACING="0"
1042CELLPADDING="4"
1043CLASS="CALSTABLE"
1044><TBODY
1045><TR
1046><TD
1047WIDTH="20%"
1048ALIGN="RIGHT"
1049VALIGN="TOP"
1050><TT
1051CLASS="PARAMETER"
1052><I
1053>ctxt</I
1054></TT
1055>&nbsp;:</TD
1056><TD
1057WIDTH="80%"
1058ALIGN="LEFT"
1059VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001060>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001061></TR
1062><TR
1063><TD
1064WIDTH="20%"
1065ALIGN="RIGHT"
1066VALIGN="TOP"
1067><TT
1068CLASS="PARAMETER"
1069><I
1070>err</I
1071></TT
1072>&nbsp;:</TD
1073><TD
1074WIDTH="80%"
1075ALIGN="LEFT"
1076VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001077>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001078></TR
1079><TR
1080><TD
1081WIDTH="20%"
1082ALIGN="RIGHT"
1083VALIGN="TOP"
1084><TT
1085CLASS="PARAMETER"
1086><I
1087>warn</I
1088></TT
1089>&nbsp;:</TD
1090><TD
1091WIDTH="80%"
1092ALIGN="LEFT"
1093VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001094>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001095></TR
1096><TR
1097><TD
1098WIDTH="20%"
1099ALIGN="RIGHT"
1100VALIGN="TOP"
1101><TT
1102CLASS="PARAMETER"
1103><I
1104>ctx</I
1105></TT
1106>&nbsp;:</TD
1107><TD
1108WIDTH="80%"
1109ALIGN="LEFT"
1110VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001111>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001112></TR
1113></TBODY
1114></TABLE
1115><P
1116></P
1117></DIV
1118></DIV
1119><HR><DIV
1120CLASS="REFSECT2"
1121><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001122NAME="AEN33394"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001123></A
1124><H3
1125><A
1126NAME="XMLSCHEMAPARSE"
1127></A
1128>xmlSchemaParse ()</H3
1129><TABLE
1130BORDER="0"
1131BGCOLOR="#D6E8FF"
1132WIDTH="100%"
1133CELLPADDING="6"
1134><TR
1135><TD
1136><PRE
1137CLASS="PROGRAMLISTING"
1138><A
1139HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1140>xmlSchemaPtr</A
1141> xmlSchemaParse (<A
1142HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1143>xmlSchemaParserCtxtPtr</A
1144> ctxt);</PRE
1145></TD
1146></TR
1147></TABLE
1148><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001149>parse a schema definition resource and build an internal
Daniel Veillard80ce3732002-10-07 17:39:30 +00001150XML Shema struture which can be used to validate instances.
1151*WARNING* this interface is highly subject to change</P
1152><P
1153></P
1154><DIV
1155CLASS="INFORMALTABLE"
1156><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001157NAME="AEN33402"
Daniel Veillardaec63562003-03-23 20:42:17 +00001158></A
1159><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001160></P
1161><TABLE
1162BORDER="0"
1163WIDTH="100%"
1164BGCOLOR="#FFD0D0"
1165CELLSPACING="0"
1166CELLPADDING="4"
1167CLASS="CALSTABLE"
1168><TBODY
1169><TR
1170><TD
1171WIDTH="20%"
1172ALIGN="RIGHT"
1173VALIGN="TOP"
1174><TT
1175CLASS="PARAMETER"
1176><I
1177>ctxt</I
1178></TT
1179>&nbsp;:</TD
1180><TD
1181WIDTH="80%"
1182ALIGN="LEFT"
1183VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001184>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001185></TR
1186><TR
1187><TD
1188WIDTH="20%"
1189ALIGN="RIGHT"
1190VALIGN="TOP"
1191><SPAN
1192CLASS="emphasis"
1193><I
1194CLASS="EMPHASIS"
1195>Returns</I
1196></SPAN
1197> :</TD
1198><TD
1199WIDTH="80%"
1200ALIGN="LEFT"
1201VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001202>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001203></TR
1204></TBODY
1205></TABLE
1206><P
1207></P
1208></DIV
1209></DIV
1210><HR><DIV
1211CLASS="REFSECT2"
1212><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001213NAME="AEN33415"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001214></A
1215><H3
1216><A
1217NAME="XMLSCHEMAFREE"
1218></A
1219>xmlSchemaFree ()</H3
1220><TABLE
1221BORDER="0"
1222BGCOLOR="#D6E8FF"
1223WIDTH="100%"
1224CELLPADDING="6"
1225><TR
1226><TD
1227><PRE
1228CLASS="PROGRAMLISTING"
1229>void xmlSchemaFree (<A
1230HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1231>xmlSchemaPtr</A
1232> schema);</PRE
1233></TD
1234></TR
1235></TABLE
1236><P
1237>Deallocate a Schema structure.</P
1238><P
1239></P
1240><DIV
1241CLASS="INFORMALTABLE"
1242><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001243NAME="AEN33422"
Daniel Veillardaec63562003-03-23 20:42:17 +00001244></A
1245><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001246></P
1247><TABLE
1248BORDER="0"
1249WIDTH="100%"
1250BGCOLOR="#FFD0D0"
1251CELLSPACING="0"
1252CELLPADDING="4"
1253CLASS="CALSTABLE"
1254><TBODY
1255><TR
1256><TD
1257WIDTH="20%"
1258ALIGN="RIGHT"
1259VALIGN="TOP"
1260><TT
1261CLASS="PARAMETER"
1262><I
1263>schema</I
1264></TT
1265>&nbsp;:</TD
1266><TD
1267WIDTH="80%"
1268ALIGN="LEFT"
1269VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001270>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001271></TR
1272></TBODY
1273></TABLE
1274><P
1275></P
1276></DIV
1277></DIV
1278><HR><DIV
1279CLASS="REFSECT2"
1280><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001281NAME="AEN33431"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001282></A
1283><H3
1284><A
1285NAME="XMLSCHEMADUMP"
1286></A
1287>xmlSchemaDump ()</H3
1288><TABLE
1289BORDER="0"
1290BGCOLOR="#D6E8FF"
1291WIDTH="100%"
1292CELLPADDING="6"
1293><TR
1294><TD
1295><PRE
1296CLASS="PROGRAMLISTING"
1297>void xmlSchemaDump (<GTKDOCLINK
1298HREF="FILE-CAPS"
1299>FILE</GTKDOCLINK
1300> *output,
1301 <A
1302HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1303>xmlSchemaPtr</A
1304> schema);</PRE
1305></TD
1306></TR
1307></TABLE
1308><P
1309>Dump a Schema structure.</P
1310><P
1311></P
1312><DIV
1313CLASS="INFORMALTABLE"
1314><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001315NAME="AEN33439"
Daniel Veillardaec63562003-03-23 20:42:17 +00001316></A
1317><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001318></P
1319><TABLE
1320BORDER="0"
1321WIDTH="100%"
1322BGCOLOR="#FFD0D0"
1323CELLSPACING="0"
1324CELLPADDING="4"
1325CLASS="CALSTABLE"
1326><TBODY
1327><TR
1328><TD
1329WIDTH="20%"
1330ALIGN="RIGHT"
1331VALIGN="TOP"
1332><TT
1333CLASS="PARAMETER"
1334><I
1335>output</I
1336></TT
1337>&nbsp;:</TD
1338><TD
1339WIDTH="80%"
1340ALIGN="LEFT"
1341VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001342>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001343></TR
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><TT
1350CLASS="PARAMETER"
1351><I
1352>schema</I
1353></TT
1354>&nbsp;:</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001359>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001360></TR
1361></TBODY
1362></TABLE
1363><P
1364></P
1365></DIV
1366></DIV
1367><HR><DIV
1368CLASS="REFSECT2"
1369><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001370NAME="AEN33452"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001371></A
1372><H3
1373><A
1374NAME="XMLSCHEMASETVALIDERRORS"
1375></A
1376>xmlSchemaSetValidErrors ()</H3
1377><TABLE
1378BORDER="0"
1379BGCOLOR="#D6E8FF"
1380WIDTH="100%"
1381CELLPADDING="6"
1382><TR
1383><TD
1384><PRE
1385CLASS="PROGRAMLISTING"
1386>void xmlSchemaSetValidErrors (<A
1387HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1388>xmlSchemaValidCtxtPtr</A
1389> ctxt,
1390 <A
1391HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1392>xmlSchemaValidityErrorFunc</A
1393> err,
1394 <A
1395HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1396>xmlSchemaValidityWarningFunc</A
1397> warn,
1398 void *ctx);</PRE
1399></TD
1400></TR
1401></TABLE
1402><P
1403>Set the error and warning callback informations</P
1404><P
1405></P
1406><DIV
1407CLASS="INFORMALTABLE"
1408><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001409NAME="AEN33461"
Daniel Veillardaec63562003-03-23 20:42:17 +00001410></A
1411><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001412></P
1413><TABLE
1414BORDER="0"
1415WIDTH="100%"
1416BGCOLOR="#FFD0D0"
1417CELLSPACING="0"
1418CELLPADDING="4"
1419CLASS="CALSTABLE"
1420><TBODY
1421><TR
1422><TD
1423WIDTH="20%"
1424ALIGN="RIGHT"
1425VALIGN="TOP"
1426><TT
1427CLASS="PARAMETER"
1428><I
1429>ctxt</I
1430></TT
1431>&nbsp;:</TD
1432><TD
1433WIDTH="80%"
1434ALIGN="LEFT"
1435VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001436>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001437></TR
1438><TR
1439><TD
1440WIDTH="20%"
1441ALIGN="RIGHT"
1442VALIGN="TOP"
1443><TT
1444CLASS="PARAMETER"
1445><I
1446>err</I
1447></TT
1448>&nbsp;:</TD
1449><TD
1450WIDTH="80%"
1451ALIGN="LEFT"
1452VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001453>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001454></TR
1455><TR
1456><TD
1457WIDTH="20%"
1458ALIGN="RIGHT"
1459VALIGN="TOP"
1460><TT
1461CLASS="PARAMETER"
1462><I
1463>warn</I
1464></TT
1465>&nbsp;:</TD
1466><TD
1467WIDTH="80%"
1468ALIGN="LEFT"
1469VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001470>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001471></TR
1472><TR
1473><TD
1474WIDTH="20%"
1475ALIGN="RIGHT"
1476VALIGN="TOP"
1477><TT
1478CLASS="PARAMETER"
1479><I
1480>ctx</I
1481></TT
1482>&nbsp;:</TD
1483><TD
1484WIDTH="80%"
1485ALIGN="LEFT"
1486VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001487>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001488></TR
1489></TBODY
1490></TABLE
1491><P
1492></P
1493></DIV
1494></DIV
1495><HR><DIV
1496CLASS="REFSECT2"
1497><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001498NAME="AEN33482"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001499></A
1500><H3
1501><A
1502NAME="XMLSCHEMANEWVALIDCTXT"
1503></A
1504>xmlSchemaNewValidCtxt ()</H3
1505><TABLE
1506BORDER="0"
1507BGCOLOR="#D6E8FF"
1508WIDTH="100%"
1509CELLPADDING="6"
1510><TR
1511><TD
1512><PRE
1513CLASS="PROGRAMLISTING"
1514><A
1515HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1516>xmlSchemaValidCtxtPtr</A
1517> xmlSchemaNewValidCtxt (<A
1518HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1519>xmlSchemaPtr</A
1520> schema);</PRE
1521></TD
1522></TR
1523></TABLE
1524><P
1525>Create an XML Schemas validation context based on the given schema</P
1526><P
1527></P
1528><DIV
1529CLASS="INFORMALTABLE"
1530><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001531NAME="AEN33490"
Daniel Veillardaec63562003-03-23 20:42:17 +00001532></A
1533><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001534></P
1535><TABLE
1536BORDER="0"
1537WIDTH="100%"
1538BGCOLOR="#FFD0D0"
1539CELLSPACING="0"
1540CELLPADDING="4"
1541CLASS="CALSTABLE"
1542><TBODY
1543><TR
1544><TD
1545WIDTH="20%"
1546ALIGN="RIGHT"
1547VALIGN="TOP"
1548><TT
1549CLASS="PARAMETER"
1550><I
1551>schema</I
1552></TT
1553>&nbsp;:</TD
1554><TD
1555WIDTH="80%"
1556ALIGN="LEFT"
1557VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001558>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001559></TR
1560><TR
1561><TD
1562WIDTH="20%"
1563ALIGN="RIGHT"
1564VALIGN="TOP"
1565><SPAN
1566CLASS="emphasis"
1567><I
1568CLASS="EMPHASIS"
1569>Returns</I
1570></SPAN
1571> :</TD
1572><TD
1573WIDTH="80%"
1574ALIGN="LEFT"
1575VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001576>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001577></TR
1578></TBODY
1579></TABLE
1580><P
1581></P
1582></DIV
1583></DIV
1584><HR><DIV
1585CLASS="REFSECT2"
1586><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001587NAME="AEN33503"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001588></A
1589><H3
1590><A
1591NAME="XMLSCHEMAFREEVALIDCTXT"
1592></A
1593>xmlSchemaFreeValidCtxt ()</H3
1594><TABLE
1595BORDER="0"
1596BGCOLOR="#D6E8FF"
1597WIDTH="100%"
1598CELLPADDING="6"
1599><TR
1600><TD
1601><PRE
1602CLASS="PROGRAMLISTING"
1603>void xmlSchemaFreeValidCtxt (<A
1604HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1605>xmlSchemaValidCtxtPtr</A
1606> ctxt);</PRE
1607></TD
1608></TR
1609></TABLE
1610><P
1611>Free the resources associated to the schema validation context</P
1612><P
1613></P
1614><DIV
1615CLASS="INFORMALTABLE"
1616><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001617NAME="AEN33510"
Daniel Veillardaec63562003-03-23 20:42:17 +00001618></A
1619><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001620></P
1621><TABLE
1622BORDER="0"
1623WIDTH="100%"
1624BGCOLOR="#FFD0D0"
1625CELLSPACING="0"
1626CELLPADDING="4"
1627CLASS="CALSTABLE"
1628><TBODY
1629><TR
1630><TD
1631WIDTH="20%"
1632ALIGN="RIGHT"
1633VALIGN="TOP"
1634><TT
1635CLASS="PARAMETER"
1636><I
1637>ctxt</I
1638></TT
1639>&nbsp;:</TD
1640><TD
1641WIDTH="80%"
1642ALIGN="LEFT"
1643VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001644>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001645></TR
1646></TBODY
1647></TABLE
1648><P
1649></P
1650></DIV
1651></DIV
1652><HR><DIV
1653CLASS="REFSECT2"
1654><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001655NAME="AEN33519"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001656></A
1657><H3
1658><A
1659NAME="XMLSCHEMAVALIDATEDOC"
1660></A
1661>xmlSchemaValidateDoc ()</H3
1662><TABLE
1663BORDER="0"
1664BGCOLOR="#D6E8FF"
1665WIDTH="100%"
1666CELLPADDING="6"
1667><TR
1668><TD
1669><PRE
1670CLASS="PROGRAMLISTING"
1671>int xmlSchemaValidateDoc (<A
1672HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1673>xmlSchemaValidCtxtPtr</A
1674> ctxt,
1675 <A
1676HREF="libxml-tree.html#XMLDOCPTR"
1677>xmlDocPtr</A
1678> instance);</PRE
1679></TD
1680></TR
1681></TABLE
1682><P
1683>Validate a document tree in memory.</P
1684><P
1685></P
1686><DIV
1687CLASS="INFORMALTABLE"
1688><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001689NAME="AEN33527"
Daniel Veillardaec63562003-03-23 20:42:17 +00001690></A
1691><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001692></P
1693><TABLE
1694BORDER="0"
1695WIDTH="100%"
1696BGCOLOR="#FFD0D0"
1697CELLSPACING="0"
1698CELLPADDING="4"
1699CLASS="CALSTABLE"
1700><TBODY
1701><TR
1702><TD
1703WIDTH="20%"
1704ALIGN="RIGHT"
1705VALIGN="TOP"
1706><TT
1707CLASS="PARAMETER"
1708><I
1709>ctxt</I
1710></TT
1711>&nbsp;:</TD
1712><TD
1713WIDTH="80%"
1714ALIGN="LEFT"
1715VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001716>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001717></TR
1718><TR
1719><TD
1720WIDTH="20%"
1721ALIGN="RIGHT"
1722VALIGN="TOP"
1723><TT
1724CLASS="PARAMETER"
1725><I
1726>instance</I
1727></TT
1728>&nbsp;:</TD
1729><TD
1730WIDTH="80%"
1731ALIGN="LEFT"
1732VALIGN="TOP"
1733>&nbsp;</TD
1734></TR
1735><TR
1736><TD
1737WIDTH="20%"
1738ALIGN="RIGHT"
1739VALIGN="TOP"
1740><SPAN
1741CLASS="emphasis"
1742><I
1743CLASS="EMPHASIS"
1744>Returns</I
1745></SPAN
1746> :</TD
1747><TD
1748WIDTH="80%"
1749ALIGN="LEFT"
1750VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001751>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001752></TR
1753></TBODY
1754></TABLE
1755><P
1756></P
1757></DIV
1758></DIV
1759><HR><DIV
1760CLASS="REFSECT2"
1761><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001762NAME="AEN33544"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001763></A
1764><H3
1765><A
1766NAME="XMLSCHEMAVALIDATESTREAM"
1767></A
1768>xmlSchemaValidateStream ()</H3
1769><TABLE
1770BORDER="0"
1771BGCOLOR="#D6E8FF"
1772WIDTH="100%"
1773CELLPADDING="6"
1774><TR
1775><TD
1776><PRE
1777CLASS="PROGRAMLISTING"
1778>int xmlSchemaValidateStream (<A
1779HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1780>xmlSchemaValidCtxtPtr</A
1781> ctxt,
1782 <A
1783HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1784>xmlParserInputBufferPtr</A
1785> input,
1786 <A
1787HREF="libxml-encoding.html#XMLCHARENCODING"
1788>xmlCharEncoding</A
1789> enc,
1790 <A
1791HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1792>xmlSAXHandlerPtr</A
1793> sax,
1794 void *user_data);</PRE
1795></TD
1796></TR
1797></TABLE
1798><P
1799>Validate a document tree in memory.</P
1800><P
1801></P
1802><DIV
1803CLASS="INFORMALTABLE"
1804><A
Daniel Veillardc2d4a932003-04-01 11:13:05 +00001805NAME="AEN33554"
Daniel Veillardaec63562003-03-23 20:42:17 +00001806></A
1807><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001808></P
1809><TABLE
1810BORDER="0"
1811WIDTH="100%"
1812BGCOLOR="#FFD0D0"
1813CELLSPACING="0"
1814CELLPADDING="4"
1815CLASS="CALSTABLE"
1816><TBODY
1817><TR
1818><TD
1819WIDTH="20%"
1820ALIGN="RIGHT"
1821VALIGN="TOP"
1822><TT
1823CLASS="PARAMETER"
1824><I
1825>ctxt</I
1826></TT
1827>&nbsp;:</TD
1828><TD
1829WIDTH="80%"
1830ALIGN="LEFT"
1831VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001832>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001833></TR
1834><TR
1835><TD
1836WIDTH="20%"
1837ALIGN="RIGHT"
1838VALIGN="TOP"
1839><TT
1840CLASS="PARAMETER"
1841><I
1842>input</I
1843></TT
1844>&nbsp;:</TD
1845><TD
1846WIDTH="80%"
1847ALIGN="LEFT"
1848VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001849>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001850></TR
1851><TR
1852><TD
1853WIDTH="20%"
1854ALIGN="RIGHT"
1855VALIGN="TOP"
1856><TT
1857CLASS="PARAMETER"
1858><I
1859>enc</I
1860></TT
1861>&nbsp;:</TD
1862><TD
1863WIDTH="80%"
1864ALIGN="LEFT"
1865VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001866>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001867></TR
1868><TR
1869><TD
1870WIDTH="20%"
1871ALIGN="RIGHT"
1872VALIGN="TOP"
1873><TT
1874CLASS="PARAMETER"
1875><I
1876>sax</I
1877></TT
1878>&nbsp;:</TD
1879><TD
1880WIDTH="80%"
1881ALIGN="LEFT"
1882VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001883>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001884></TR
1885><TR
1886><TD
1887WIDTH="20%"
1888ALIGN="RIGHT"
1889VALIGN="TOP"
1890><TT
1891CLASS="PARAMETER"
1892><I
1893>user_data</I
1894></TT
1895>&nbsp;:</TD
1896><TD
1897WIDTH="80%"
1898ALIGN="LEFT"
1899VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001900>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001901></TR
1902><TR
1903><TD
1904WIDTH="20%"
1905ALIGN="RIGHT"
1906VALIGN="TOP"
1907><SPAN
1908CLASS="emphasis"
1909><I
1910CLASS="EMPHASIS"
1911>Returns</I
1912></SPAN
1913> :</TD
1914><TD
1915WIDTH="80%"
1916ALIGN="LEFT"
1917VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001918>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001919></TR
1920></TBODY
1921></TABLE
1922><P
1923></P
1924></DIV
1925></DIV
1926></DIV
1927><DIV
1928CLASS="NAVFOOTER"
1929><BR
1930CLEAR="all"><BR><TABLE
1931WIDTH="100%"
1932BORDER="0"
1933BGCOLOR="#000000"
1934CELLPADDING="1"
1935CELLSPACING="0"
1936><TR
1937><TD
1938WIDTH="25%"
1939BGCOLOR="#C00000"
1940ALIGN="left"
1941><A
1942HREF="libxml-xmlunicode.html"
1943><FONT
1944COLOR="#FFFFFF"
1945SIZE="3"
1946><B
1947>&#60;&#60;&#60; Previous Page</B
1948></FONT
1949></A
1950></TD
1951><TD
1952WIDTH="25%"
1953BGCOLOR="#0000C0"
1954ALIGN="center"
1955><FONT
1956COLOR="#FFFFFF"
1957SIZE="3"
1958><B
1959><A
1960HREF="book1.html"
1961><FONT
1962COLOR="#FFFFFF"
1963SIZE="3"
1964><B
1965>Home</B
1966></FONT
1967></A
1968></B
1969></FONT
1970></TD
1971><TD
1972WIDTH="25%"
1973BGCOLOR="#00C000"
1974ALIGN="center"
1975><FONT
1976COLOR="#FFFFFF"
1977SIZE="3"
1978><B
1979><A
1980HREF="libxml-lib.html"
1981><FONT
1982COLOR="#FFFFFF"
1983SIZE="3"
1984><B
1985>Up</B
1986></FONT
1987></A
1988></B
1989></FONT
1990></TD
1991><TD
1992WIDTH="25%"
1993BGCOLOR="#C00000"
1994ALIGN="right"
1995><A
1996HREF="libxml-xmlschemastypes.html"
1997><FONT
1998COLOR="#FFFFFF"
1999SIZE="3"
2000><B
2001>Next Page &#62;&#62;&#62;</B
2002></FONT
2003></A
2004></TD
2005></TR
2006><TR
2007><TD
2008COLSPAN="2"
2009ALIGN="left"
2010><FONT
2011COLOR="#FFFFFF"
2012SIZE="3"
2013><B
2014>xmlunicode</B
2015></FONT
2016></TD
2017><TD
2018COLSPAN="2"
2019ALIGN="right"
2020><FONT
2021COLOR="#FFFFFF"
2022SIZE="3"
2023><B
2024>xmlschemastypes</B
2025></FONT
2026></TD
2027></TR
2028></TABLE
2029></DIV
2030></BODY
2031></HTML
2032>