blob: 50d64422d1a69c8f7190fb479ba9cdd174c64b9f [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 Veillardd8da01c2003-03-24 15:58:23 +0000126NAME="AEN33148"
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 Veillardd8da01c2003-03-24 15:58:23 +0000134NAME="AEN33151"
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 Veillardd8da01c2003-03-24 15:58:23 +0000328NAME="AEN33198"
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 Veillardd8da01c2003-03-24 15:58:23 +0000338NAME="AEN33201"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000339></A
340><H2
341>Details</H2
342><DIV
343CLASS="REFSECT2"
344><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000345NAME="AEN33203"
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,
384 XML_SCHEMAS_ERR_,
385 XML_SCHEMAS_ERR_XXX
386} xmlSchemaValidError;</PRE
387></TD
388></TR
389></TABLE
390><P
391></P
392></DIV
393><HR><DIV
394CLASS="REFSECT2"
395><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000396NAME="AEN33208"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000397></A
398><H3
399><A
400NAME="XMLSCHEMA"
401></A
402>struct xmlSchema</H3
403><TABLE
404BORDER="0"
405BGCOLOR="#D6E8FF"
406WIDTH="100%"
407CELLPADDING="6"
408><TR
409><TD
410><PRE
411CLASS="PROGRAMLISTING"
412>struct xmlSchema {
413 xmlChar *name; /* schema name */
414 xmlChar *targetNamespace; /* the target namespace */
415 xmlChar *version;
416 xmlChar *id;
417 xmlDocPtr doc;
418 xmlSchemaAnnotPtr annot;
419 int flags;
420
421 xmlHashTablePtr typeDecl;
422 xmlHashTablePtr attrDecl;
423 xmlHashTablePtr attrgrpDecl;
424 xmlHashTablePtr elemDecl;
425 xmlHashTablePtr notaDecl;
Daniel Veillardaec63562003-03-23 20:42:17 +0000426
427 xmlHashTablePtr schemasImports;
428
429 void *_private; /* unused by the library for users or bindings */
Daniel Veillard80ce3732002-10-07 17:39:30 +0000430};</PRE
431></TD
432></TR
433></TABLE
434><P
435></P
436></DIV
437><HR><DIV
438CLASS="REFSECT2"
439><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000440NAME="AEN33213"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000441></A
442><H3
443><A
444NAME="XMLSCHEMAPTR"
445></A
446>xmlSchemaPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000447><P
448></P
449></DIV
450><HR><DIV
451CLASS="REFSECT2"
452><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000453NAME="AEN33217"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000454></A
455><H3
456><A
457NAME="XMLSCHEMAVALIDITYERRORFUNC"
458></A
459>xmlSchemaValidityErrorFunc ()</H3
460><TABLE
461BORDER="0"
462BGCOLOR="#D6E8FF"
463WIDTH="100%"
464CELLPADDING="6"
465><TR
466><TD
467><PRE
468CLASS="PROGRAMLISTING"
469>void (*xmlSchemaValidityErrorFunc) (void *ctx,
470 const char *msg,
471 ...);</PRE
472></TD
473></TR
474></TABLE
475><P
476></P
477><DIV
478CLASS="INFORMALTABLE"
479><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000480NAME="AEN33222"
Daniel Veillardaec63562003-03-23 20:42:17 +0000481></A
482><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000483></P
484><TABLE
485BORDER="0"
486WIDTH="100%"
487BGCOLOR="#FFD0D0"
488CELLSPACING="0"
489CELLPADDING="4"
490CLASS="CALSTABLE"
491><TBODY
492><TR
493><TD
494WIDTH="20%"
495ALIGN="RIGHT"
496VALIGN="TOP"
497><TT
498CLASS="PARAMETER"
499><I
500>ctx</I
501></TT
502>&nbsp;:</TD
503><TD
504WIDTH="80%"
505ALIGN="LEFT"
506VALIGN="TOP"
507>&nbsp;</TD
508></TR
509><TR
510><TD
511WIDTH="20%"
512ALIGN="RIGHT"
513VALIGN="TOP"
514><TT
515CLASS="PARAMETER"
516><I
517>msg</I
518></TT
519>&nbsp;:</TD
520><TD
521WIDTH="80%"
522ALIGN="LEFT"
523VALIGN="TOP"
524>&nbsp;</TD
525></TR
526><TR
527><TD
528WIDTH="20%"
529ALIGN="RIGHT"
530VALIGN="TOP"
531><TT
532CLASS="PARAMETER"
533><I
534>...</I
535></TT
536>&nbsp;:</TD
537><TD
538WIDTH="80%"
539ALIGN="LEFT"
540VALIGN="TOP"
541>&nbsp;</TD
542></TR
543></TBODY
544></TABLE
545><P
546></P
547></DIV
548></DIV
549><HR><DIV
550CLASS="REFSECT2"
551><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000552NAME="AEN33239"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000553></A
554><H3
555><A
Daniel Veillard48267432002-10-18 11:21:38 +0000556NAME="XMLSCHEMAVALIDITYWARNINGFUNC"
557></A
558>xmlSchemaValidityWarningFunc ()</H3
559><TABLE
560BORDER="0"
561BGCOLOR="#D6E8FF"
562WIDTH="100%"
563CELLPADDING="6"
564><TR
565><TD
566><PRE
567CLASS="PROGRAMLISTING"
568>void (*xmlSchemaValidityWarningFunc) (void *ctx,
569 const char *msg,
570 ...);</PRE
571></TD
572></TR
573></TABLE
574><P
575></P
576><DIV
577CLASS="INFORMALTABLE"
578><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000579NAME="AEN33244"
Daniel Veillardaec63562003-03-23 20:42:17 +0000580></A
581><P
Daniel Veillard48267432002-10-18 11:21:38 +0000582></P
583><TABLE
584BORDER="0"
585WIDTH="100%"
586BGCOLOR="#FFD0D0"
587CELLSPACING="0"
588CELLPADDING="4"
589CLASS="CALSTABLE"
590><TBODY
591><TR
592><TD
593WIDTH="20%"
594ALIGN="RIGHT"
595VALIGN="TOP"
596><TT
597CLASS="PARAMETER"
598><I
599>ctx</I
600></TT
601>&nbsp;:</TD
602><TD
603WIDTH="80%"
604ALIGN="LEFT"
605VALIGN="TOP"
606>&nbsp;</TD
607></TR
608><TR
609><TD
610WIDTH="20%"
611ALIGN="RIGHT"
612VALIGN="TOP"
613><TT
614CLASS="PARAMETER"
615><I
616>msg</I
617></TT
618>&nbsp;:</TD
619><TD
620WIDTH="80%"
621ALIGN="LEFT"
622VALIGN="TOP"
623>&nbsp;</TD
624></TR
625><TR
626><TD
627WIDTH="20%"
628ALIGN="RIGHT"
629VALIGN="TOP"
630><TT
631CLASS="PARAMETER"
632><I
633>...</I
634></TT
635>&nbsp;:</TD
636><TD
637WIDTH="80%"
638ALIGN="LEFT"
639VALIGN="TOP"
640>&nbsp;</TD
641></TR
642></TBODY
643></TABLE
644><P
645></P
646></DIV
647></DIV
648><HR><DIV
649CLASS="REFSECT2"
650><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000651NAME="AEN33261"
Daniel Veillard48267432002-10-18 11:21:38 +0000652></A
653><H3
654><A
Daniel Veillard80ce3732002-10-07 17:39:30 +0000655NAME="XMLSCHEMAPARSERCTXT"
656></A
657>struct xmlSchemaParserCtxt</H3
658><TABLE
659BORDER="0"
660BGCOLOR="#D6E8FF"
661WIDTH="100%"
662CELLPADDING="6"
663><TR
664><TD
665><PRE
666CLASS="PROGRAMLISTING"
667>struct xmlSchemaParserCtxt;</PRE
668></TD
669></TR
670></TABLE
671><P
672></P
673></DIV
674><HR><DIV
675CLASS="REFSECT2"
676><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000677NAME="AEN33266"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000678></A
679><H3
680><A
681NAME="XMLSCHEMAPARSERCTXTPTR"
682></A
683>xmlSchemaParserCtxtPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000684><P
685></P
686></DIV
687><HR><DIV
688CLASS="REFSECT2"
689><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000690NAME="AEN33270"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000691></A
692><H3
693><A
694NAME="XMLSCHEMAVALIDCTXT"
695></A
696>struct xmlSchemaValidCtxt</H3
697><TABLE
698BORDER="0"
699BGCOLOR="#D6E8FF"
700WIDTH="100%"
701CELLPADDING="6"
702><TR
703><TD
704><PRE
705CLASS="PROGRAMLISTING"
706>struct xmlSchemaValidCtxt;</PRE
707></TD
708></TR
709></TABLE
710><P
711>A Schemas validation context</P
712><P
713></P
714></DIV
715><HR><DIV
716CLASS="REFSECT2"
717><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000718NAME="AEN33276"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000719></A
720><H3
721><A
722NAME="XMLSCHEMAVALIDCTXTPTR"
723></A
724>xmlSchemaValidCtxtPtr</H3
Daniel Veillard80ce3732002-10-07 17:39:30 +0000725><P
726></P
727></DIV
728><HR><DIV
729CLASS="REFSECT2"
730><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000731NAME="AEN33280"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000732></A
733><H3
734><A
735NAME="XMLSCHEMANEWPARSERCTXT"
736></A
737>xmlSchemaNewParserCtxt ()</H3
738><TABLE
739BORDER="0"
740BGCOLOR="#D6E8FF"
741WIDTH="100%"
742CELLPADDING="6"
743><TR
744><TD
745><PRE
746CLASS="PROGRAMLISTING"
747><A
748HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
749>xmlSchemaParserCtxtPtr</A
750> xmlSchemaNewParserCtxt
751 (const char *URL);</PRE
752></TD
753></TR
754></TABLE
755><P
756>Create an XML Schemas parse context for that file/resource expected
757to contain an XML Schemas file.</P
758><P
759></P
760><DIV
761CLASS="INFORMALTABLE"
762><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000763NAME="AEN33287"
Daniel Veillardaec63562003-03-23 20:42:17 +0000764></A
765><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000766></P
767><TABLE
768BORDER="0"
769WIDTH="100%"
770BGCOLOR="#FFD0D0"
771CELLSPACING="0"
772CELLPADDING="4"
773CLASS="CALSTABLE"
774><TBODY
775><TR
776><TD
777WIDTH="20%"
778ALIGN="RIGHT"
779VALIGN="TOP"
780><TT
781CLASS="PARAMETER"
782><I
783>URL</I
784></TT
785>&nbsp;:</TD
786><TD
787WIDTH="80%"
788ALIGN="LEFT"
789VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000790>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000791></TR
792><TR
793><TD
794WIDTH="20%"
795ALIGN="RIGHT"
796VALIGN="TOP"
797><SPAN
798CLASS="emphasis"
799><I
800CLASS="EMPHASIS"
801>Returns</I
802></SPAN
803> :</TD
804><TD
805WIDTH="80%"
806ALIGN="LEFT"
807VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000808>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000809></TR
810></TBODY
811></TABLE
812><P
813></P
814></DIV
815></DIV
816><HR><DIV
817CLASS="REFSECT2"
818><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000819NAME="AEN33300"
Daniel Veillardaec63562003-03-23 20:42:17 +0000820></A
821><H3
822><A
823NAME="XMLSCHEMANEWMEMPARSERCTXT"
824></A
825>xmlSchemaNewMemParserCtxt ()</H3
826><TABLE
827BORDER="0"
828BGCOLOR="#D6E8FF"
829WIDTH="100%"
830CELLPADDING="6"
831><TR
832><TD
833><PRE
834CLASS="PROGRAMLISTING"
835><A
836HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
837>xmlSchemaParserCtxtPtr</A
838> xmlSchemaNewMemParserCtxt
839 (const char *buffer,
840 int size);</PRE
841></TD
842></TR
843></TABLE
844><P
845>Create an XML Schemas parse context for that memory buffer expected
846to contain an XML Schemas file.</P
847><P
848></P
849><DIV
850CLASS="INFORMALTABLE"
851><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000852NAME="AEN33307"
Daniel Veillardaec63562003-03-23 20:42:17 +0000853></A
854><P
855></P
856><TABLE
857BORDER="0"
858WIDTH="100%"
859BGCOLOR="#FFD0D0"
860CELLSPACING="0"
861CELLPADDING="4"
862CLASS="CALSTABLE"
863><TBODY
864><TR
865><TD
866WIDTH="20%"
867ALIGN="RIGHT"
868VALIGN="TOP"
869><TT
870CLASS="PARAMETER"
871><I
872>buffer</I
873></TT
874>&nbsp;:</TD
875><TD
876WIDTH="80%"
877ALIGN="LEFT"
878VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000879>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000880></TR
881><TR
882><TD
883WIDTH="20%"
884ALIGN="RIGHT"
885VALIGN="TOP"
886><TT
887CLASS="PARAMETER"
888><I
889>size</I
890></TT
891>&nbsp;:</TD
892><TD
893WIDTH="80%"
894ALIGN="LEFT"
895VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000896>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000897></TR
898><TR
899><TD
900WIDTH="20%"
901ALIGN="RIGHT"
902VALIGN="TOP"
903><SPAN
904CLASS="emphasis"
905><I
906CLASS="EMPHASIS"
907>Returns</I
908></SPAN
909> :</TD
910><TD
911WIDTH="80%"
912ALIGN="LEFT"
913VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000914>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +0000915></TR
916></TBODY
917></TABLE
918><P
919></P
920></DIV
921></DIV
922><HR><DIV
923CLASS="REFSECT2"
924><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000925NAME="AEN33324"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000926></A
927><H3
928><A
929NAME="XMLSCHEMAFREEPARSERCTXT"
930></A
931>xmlSchemaFreeParserCtxt ()</H3
932><TABLE
933BORDER="0"
934BGCOLOR="#D6E8FF"
935WIDTH="100%"
936CELLPADDING="6"
937><TR
938><TD
939><PRE
940CLASS="PROGRAMLISTING"
941>void xmlSchemaFreeParserCtxt (<A
942HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
943>xmlSchemaParserCtxtPtr</A
944> ctxt);</PRE
945></TD
946></TR
947></TABLE
948><P
949>Free the resources associated to the schema parser context</P
950><P
951></P
952><DIV
953CLASS="INFORMALTABLE"
954><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000955NAME="AEN33331"
Daniel Veillardaec63562003-03-23 20:42:17 +0000956></A
957><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000958></P
959><TABLE
960BORDER="0"
961WIDTH="100%"
962BGCOLOR="#FFD0D0"
963CELLSPACING="0"
964CELLPADDING="4"
965CLASS="CALSTABLE"
966><TBODY
967><TR
968><TD
969WIDTH="20%"
970ALIGN="RIGHT"
971VALIGN="TOP"
972><TT
973CLASS="PARAMETER"
974><I
975>ctxt</I
976></TT
977>&nbsp;:</TD
978><TD
979WIDTH="80%"
980ALIGN="LEFT"
981VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000982>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +0000983></TR
984></TBODY
985></TABLE
986><P
987></P
988></DIV
989></DIV
990><HR><DIV
991CLASS="REFSECT2"
992><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000993NAME="AEN33340"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000994></A
995><H3
996><A
997NAME="XMLSCHEMASETPARSERERRORS"
998></A
999>xmlSchemaSetParserErrors ()</H3
1000><TABLE
1001BORDER="0"
1002BGCOLOR="#D6E8FF"
1003WIDTH="100%"
1004CELLPADDING="6"
1005><TR
1006><TD
1007><PRE
1008CLASS="PROGRAMLISTING"
1009>void xmlSchemaSetParserErrors (<A
1010HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1011>xmlSchemaParserCtxtPtr</A
1012> ctxt,
1013 <A
1014HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1015>xmlSchemaValidityErrorFunc</A
1016> err,
1017 <A
1018HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1019>xmlSchemaValidityWarningFunc</A
1020> warn,
1021 void *ctx);</PRE
1022></TD
1023></TR
1024></TABLE
1025><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001026>Set the callback functions used to handle errors for a validation context</P
1027><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001028></P
1029><DIV
1030CLASS="INFORMALTABLE"
1031><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001032NAME="AEN33349"
Daniel Veillardaec63562003-03-23 20:42:17 +00001033></A
1034><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001035></P
1036><TABLE
1037BORDER="0"
1038WIDTH="100%"
1039BGCOLOR="#FFD0D0"
1040CELLSPACING="0"
1041CELLPADDING="4"
1042CLASS="CALSTABLE"
1043><TBODY
1044><TR
1045><TD
1046WIDTH="20%"
1047ALIGN="RIGHT"
1048VALIGN="TOP"
1049><TT
1050CLASS="PARAMETER"
1051><I
1052>ctxt</I
1053></TT
1054>&nbsp;:</TD
1055><TD
1056WIDTH="80%"
1057ALIGN="LEFT"
1058VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001059>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001060></TR
1061><TR
1062><TD
1063WIDTH="20%"
1064ALIGN="RIGHT"
1065VALIGN="TOP"
1066><TT
1067CLASS="PARAMETER"
1068><I
1069>err</I
1070></TT
1071>&nbsp;:</TD
1072><TD
1073WIDTH="80%"
1074ALIGN="LEFT"
1075VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001076>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001077></TR
1078><TR
1079><TD
1080WIDTH="20%"
1081ALIGN="RIGHT"
1082VALIGN="TOP"
1083><TT
1084CLASS="PARAMETER"
1085><I
1086>warn</I
1087></TT
1088>&nbsp;:</TD
1089><TD
1090WIDTH="80%"
1091ALIGN="LEFT"
1092VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001093>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001094></TR
1095><TR
1096><TD
1097WIDTH="20%"
1098ALIGN="RIGHT"
1099VALIGN="TOP"
1100><TT
1101CLASS="PARAMETER"
1102><I
1103>ctx</I
1104></TT
1105>&nbsp;:</TD
1106><TD
1107WIDTH="80%"
1108ALIGN="LEFT"
1109VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001110>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001111></TR
1112></TBODY
1113></TABLE
1114><P
1115></P
1116></DIV
1117></DIV
1118><HR><DIV
1119CLASS="REFSECT2"
1120><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001121NAME="AEN33370"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001122></A
1123><H3
1124><A
1125NAME="XMLSCHEMAPARSE"
1126></A
1127>xmlSchemaParse ()</H3
1128><TABLE
1129BORDER="0"
1130BGCOLOR="#D6E8FF"
1131WIDTH="100%"
1132CELLPADDING="6"
1133><TR
1134><TD
1135><PRE
1136CLASS="PROGRAMLISTING"
1137><A
1138HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1139>xmlSchemaPtr</A
1140> xmlSchemaParse (<A
1141HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1142>xmlSchemaParserCtxtPtr</A
1143> ctxt);</PRE
1144></TD
1145></TR
1146></TABLE
1147><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001148>parse a schema definition resource and build an internal
Daniel Veillard80ce3732002-10-07 17:39:30 +00001149XML Shema struture which can be used to validate instances.
1150*WARNING* this interface is highly subject to change</P
1151><P
1152></P
1153><DIV
1154CLASS="INFORMALTABLE"
1155><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001156NAME="AEN33378"
Daniel Veillardaec63562003-03-23 20:42:17 +00001157></A
1158><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001159></P
1160><TABLE
1161BORDER="0"
1162WIDTH="100%"
1163BGCOLOR="#FFD0D0"
1164CELLSPACING="0"
1165CELLPADDING="4"
1166CLASS="CALSTABLE"
1167><TBODY
1168><TR
1169><TD
1170WIDTH="20%"
1171ALIGN="RIGHT"
1172VALIGN="TOP"
1173><TT
1174CLASS="PARAMETER"
1175><I
1176>ctxt</I
1177></TT
1178>&nbsp;:</TD
1179><TD
1180WIDTH="80%"
1181ALIGN="LEFT"
1182VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001183>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001184></TR
1185><TR
1186><TD
1187WIDTH="20%"
1188ALIGN="RIGHT"
1189VALIGN="TOP"
1190><SPAN
1191CLASS="emphasis"
1192><I
1193CLASS="EMPHASIS"
1194>Returns</I
1195></SPAN
1196> :</TD
1197><TD
1198WIDTH="80%"
1199ALIGN="LEFT"
1200VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001201>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001202></TR
1203></TBODY
1204></TABLE
1205><P
1206></P
1207></DIV
1208></DIV
1209><HR><DIV
1210CLASS="REFSECT2"
1211><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001212NAME="AEN33391"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001213></A
1214><H3
1215><A
1216NAME="XMLSCHEMAFREE"
1217></A
1218>xmlSchemaFree ()</H3
1219><TABLE
1220BORDER="0"
1221BGCOLOR="#D6E8FF"
1222WIDTH="100%"
1223CELLPADDING="6"
1224><TR
1225><TD
1226><PRE
1227CLASS="PROGRAMLISTING"
1228>void xmlSchemaFree (<A
1229HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1230>xmlSchemaPtr</A
1231> schema);</PRE
1232></TD
1233></TR
1234></TABLE
1235><P
1236>Deallocate a Schema structure.</P
1237><P
1238></P
1239><DIV
1240CLASS="INFORMALTABLE"
1241><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001242NAME="AEN33398"
Daniel Veillardaec63562003-03-23 20:42:17 +00001243></A
1244><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001245></P
1246><TABLE
1247BORDER="0"
1248WIDTH="100%"
1249BGCOLOR="#FFD0D0"
1250CELLSPACING="0"
1251CELLPADDING="4"
1252CLASS="CALSTABLE"
1253><TBODY
1254><TR
1255><TD
1256WIDTH="20%"
1257ALIGN="RIGHT"
1258VALIGN="TOP"
1259><TT
1260CLASS="PARAMETER"
1261><I
1262>schema</I
1263></TT
1264>&nbsp;:</TD
1265><TD
1266WIDTH="80%"
1267ALIGN="LEFT"
1268VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001269>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001270></TR
1271></TBODY
1272></TABLE
1273><P
1274></P
1275></DIV
1276></DIV
1277><HR><DIV
1278CLASS="REFSECT2"
1279><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001280NAME="AEN33407"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001281></A
1282><H3
1283><A
1284NAME="XMLSCHEMADUMP"
1285></A
1286>xmlSchemaDump ()</H3
1287><TABLE
1288BORDER="0"
1289BGCOLOR="#D6E8FF"
1290WIDTH="100%"
1291CELLPADDING="6"
1292><TR
1293><TD
1294><PRE
1295CLASS="PROGRAMLISTING"
1296>void xmlSchemaDump (<GTKDOCLINK
1297HREF="FILE-CAPS"
1298>FILE</GTKDOCLINK
1299> *output,
1300 <A
1301HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1302>xmlSchemaPtr</A
1303> schema);</PRE
1304></TD
1305></TR
1306></TABLE
1307><P
1308>Dump a Schema structure.</P
1309><P
1310></P
1311><DIV
1312CLASS="INFORMALTABLE"
1313><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001314NAME="AEN33415"
Daniel Veillardaec63562003-03-23 20:42:17 +00001315></A
1316><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001317></P
1318><TABLE
1319BORDER="0"
1320WIDTH="100%"
1321BGCOLOR="#FFD0D0"
1322CELLSPACING="0"
1323CELLPADDING="4"
1324CLASS="CALSTABLE"
1325><TBODY
1326><TR
1327><TD
1328WIDTH="20%"
1329ALIGN="RIGHT"
1330VALIGN="TOP"
1331><TT
1332CLASS="PARAMETER"
1333><I
1334>output</I
1335></TT
1336>&nbsp;:</TD
1337><TD
1338WIDTH="80%"
1339ALIGN="LEFT"
1340VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001341>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001342></TR
1343><TR
1344><TD
1345WIDTH="20%"
1346ALIGN="RIGHT"
1347VALIGN="TOP"
1348><TT
1349CLASS="PARAMETER"
1350><I
1351>schema</I
1352></TT
1353>&nbsp;:</TD
1354><TD
1355WIDTH="80%"
1356ALIGN="LEFT"
1357VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001358>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001359></TR
1360></TBODY
1361></TABLE
1362><P
1363></P
1364></DIV
1365></DIV
1366><HR><DIV
1367CLASS="REFSECT2"
1368><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001369NAME="AEN33428"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001370></A
1371><H3
1372><A
1373NAME="XMLSCHEMASETVALIDERRORS"
1374></A
1375>xmlSchemaSetValidErrors ()</H3
1376><TABLE
1377BORDER="0"
1378BGCOLOR="#D6E8FF"
1379WIDTH="100%"
1380CELLPADDING="6"
1381><TR
1382><TD
1383><PRE
1384CLASS="PROGRAMLISTING"
1385>void xmlSchemaSetValidErrors (<A
1386HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1387>xmlSchemaValidCtxtPtr</A
1388> ctxt,
1389 <A
1390HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1391>xmlSchemaValidityErrorFunc</A
1392> err,
1393 <A
1394HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1395>xmlSchemaValidityWarningFunc</A
1396> warn,
1397 void *ctx);</PRE
1398></TD
1399></TR
1400></TABLE
1401><P
1402>Set the error and warning callback informations</P
1403><P
1404></P
1405><DIV
1406CLASS="INFORMALTABLE"
1407><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001408NAME="AEN33437"
Daniel Veillardaec63562003-03-23 20:42:17 +00001409></A
1410><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001411></P
1412><TABLE
1413BORDER="0"
1414WIDTH="100%"
1415BGCOLOR="#FFD0D0"
1416CELLSPACING="0"
1417CELLPADDING="4"
1418CLASS="CALSTABLE"
1419><TBODY
1420><TR
1421><TD
1422WIDTH="20%"
1423ALIGN="RIGHT"
1424VALIGN="TOP"
1425><TT
1426CLASS="PARAMETER"
1427><I
1428>ctxt</I
1429></TT
1430>&nbsp;:</TD
1431><TD
1432WIDTH="80%"
1433ALIGN="LEFT"
1434VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001435>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001436></TR
1437><TR
1438><TD
1439WIDTH="20%"
1440ALIGN="RIGHT"
1441VALIGN="TOP"
1442><TT
1443CLASS="PARAMETER"
1444><I
1445>err</I
1446></TT
1447>&nbsp;:</TD
1448><TD
1449WIDTH="80%"
1450ALIGN="LEFT"
1451VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001452>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001453></TR
1454><TR
1455><TD
1456WIDTH="20%"
1457ALIGN="RIGHT"
1458VALIGN="TOP"
1459><TT
1460CLASS="PARAMETER"
1461><I
1462>warn</I
1463></TT
1464>&nbsp;:</TD
1465><TD
1466WIDTH="80%"
1467ALIGN="LEFT"
1468VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001469>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001470></TR
1471><TR
1472><TD
1473WIDTH="20%"
1474ALIGN="RIGHT"
1475VALIGN="TOP"
1476><TT
1477CLASS="PARAMETER"
1478><I
1479>ctx</I
1480></TT
1481>&nbsp;:</TD
1482><TD
1483WIDTH="80%"
1484ALIGN="LEFT"
1485VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001486>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001487></TR
1488></TBODY
1489></TABLE
1490><P
1491></P
1492></DIV
1493></DIV
1494><HR><DIV
1495CLASS="REFSECT2"
1496><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001497NAME="AEN33458"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001498></A
1499><H3
1500><A
1501NAME="XMLSCHEMANEWVALIDCTXT"
1502></A
1503>xmlSchemaNewValidCtxt ()</H3
1504><TABLE
1505BORDER="0"
1506BGCOLOR="#D6E8FF"
1507WIDTH="100%"
1508CELLPADDING="6"
1509><TR
1510><TD
1511><PRE
1512CLASS="PROGRAMLISTING"
1513><A
1514HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1515>xmlSchemaValidCtxtPtr</A
1516> xmlSchemaNewValidCtxt (<A
1517HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1518>xmlSchemaPtr</A
1519> schema);</PRE
1520></TD
1521></TR
1522></TABLE
1523><P
1524>Create an XML Schemas validation context based on the given schema</P
1525><P
1526></P
1527><DIV
1528CLASS="INFORMALTABLE"
1529><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001530NAME="AEN33466"
Daniel Veillardaec63562003-03-23 20:42:17 +00001531></A
1532><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001533></P
1534><TABLE
1535BORDER="0"
1536WIDTH="100%"
1537BGCOLOR="#FFD0D0"
1538CELLSPACING="0"
1539CELLPADDING="4"
1540CLASS="CALSTABLE"
1541><TBODY
1542><TR
1543><TD
1544WIDTH="20%"
1545ALIGN="RIGHT"
1546VALIGN="TOP"
1547><TT
1548CLASS="PARAMETER"
1549><I
1550>schema</I
1551></TT
1552>&nbsp;:</TD
1553><TD
1554WIDTH="80%"
1555ALIGN="LEFT"
1556VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001557>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001558></TR
1559><TR
1560><TD
1561WIDTH="20%"
1562ALIGN="RIGHT"
1563VALIGN="TOP"
1564><SPAN
1565CLASS="emphasis"
1566><I
1567CLASS="EMPHASIS"
1568>Returns</I
1569></SPAN
1570> :</TD
1571><TD
1572WIDTH="80%"
1573ALIGN="LEFT"
1574VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001575>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001576></TR
1577></TBODY
1578></TABLE
1579><P
1580></P
1581></DIV
1582></DIV
1583><HR><DIV
1584CLASS="REFSECT2"
1585><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001586NAME="AEN33479"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001587></A
1588><H3
1589><A
1590NAME="XMLSCHEMAFREEVALIDCTXT"
1591></A
1592>xmlSchemaFreeValidCtxt ()</H3
1593><TABLE
1594BORDER="0"
1595BGCOLOR="#D6E8FF"
1596WIDTH="100%"
1597CELLPADDING="6"
1598><TR
1599><TD
1600><PRE
1601CLASS="PROGRAMLISTING"
1602>void xmlSchemaFreeValidCtxt (<A
1603HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1604>xmlSchemaValidCtxtPtr</A
1605> ctxt);</PRE
1606></TD
1607></TR
1608></TABLE
1609><P
1610>Free the resources associated to the schema validation context</P
1611><P
1612></P
1613><DIV
1614CLASS="INFORMALTABLE"
1615><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001616NAME="AEN33486"
Daniel Veillardaec63562003-03-23 20:42:17 +00001617></A
1618><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001619></P
1620><TABLE
1621BORDER="0"
1622WIDTH="100%"
1623BGCOLOR="#FFD0D0"
1624CELLSPACING="0"
1625CELLPADDING="4"
1626CLASS="CALSTABLE"
1627><TBODY
1628><TR
1629><TD
1630WIDTH="20%"
1631ALIGN="RIGHT"
1632VALIGN="TOP"
1633><TT
1634CLASS="PARAMETER"
1635><I
1636>ctxt</I
1637></TT
1638>&nbsp;:</TD
1639><TD
1640WIDTH="80%"
1641ALIGN="LEFT"
1642VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001643>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001644></TR
1645></TBODY
1646></TABLE
1647><P
1648></P
1649></DIV
1650></DIV
1651><HR><DIV
1652CLASS="REFSECT2"
1653><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001654NAME="AEN33495"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001655></A
1656><H3
1657><A
1658NAME="XMLSCHEMAVALIDATEDOC"
1659></A
1660>xmlSchemaValidateDoc ()</H3
1661><TABLE
1662BORDER="0"
1663BGCOLOR="#D6E8FF"
1664WIDTH="100%"
1665CELLPADDING="6"
1666><TR
1667><TD
1668><PRE
1669CLASS="PROGRAMLISTING"
1670>int xmlSchemaValidateDoc (<A
1671HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1672>xmlSchemaValidCtxtPtr</A
1673> ctxt,
1674 <A
1675HREF="libxml-tree.html#XMLDOCPTR"
1676>xmlDocPtr</A
1677> instance);</PRE
1678></TD
1679></TR
1680></TABLE
1681><P
1682>Validate a document tree in memory.</P
1683><P
1684></P
1685><DIV
1686CLASS="INFORMALTABLE"
1687><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001688NAME="AEN33503"
Daniel Veillardaec63562003-03-23 20:42:17 +00001689></A
1690><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001691></P
1692><TABLE
1693BORDER="0"
1694WIDTH="100%"
1695BGCOLOR="#FFD0D0"
1696CELLSPACING="0"
1697CELLPADDING="4"
1698CLASS="CALSTABLE"
1699><TBODY
1700><TR
1701><TD
1702WIDTH="20%"
1703ALIGN="RIGHT"
1704VALIGN="TOP"
1705><TT
1706CLASS="PARAMETER"
1707><I
1708>ctxt</I
1709></TT
1710>&nbsp;:</TD
1711><TD
1712WIDTH="80%"
1713ALIGN="LEFT"
1714VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001715>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001716></TR
1717><TR
1718><TD
1719WIDTH="20%"
1720ALIGN="RIGHT"
1721VALIGN="TOP"
1722><TT
1723CLASS="PARAMETER"
1724><I
1725>instance</I
1726></TT
1727>&nbsp;:</TD
1728><TD
1729WIDTH="80%"
1730ALIGN="LEFT"
1731VALIGN="TOP"
1732>&nbsp;</TD
1733></TR
1734><TR
1735><TD
1736WIDTH="20%"
1737ALIGN="RIGHT"
1738VALIGN="TOP"
1739><SPAN
1740CLASS="emphasis"
1741><I
1742CLASS="EMPHASIS"
1743>Returns</I
1744></SPAN
1745> :</TD
1746><TD
1747WIDTH="80%"
1748ALIGN="LEFT"
1749VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001750>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001751></TR
1752></TBODY
1753></TABLE
1754><P
1755></P
1756></DIV
1757></DIV
1758><HR><DIV
1759CLASS="REFSECT2"
1760><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001761NAME="AEN33520"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001762></A
1763><H3
1764><A
1765NAME="XMLSCHEMAVALIDATESTREAM"
1766></A
1767>xmlSchemaValidateStream ()</H3
1768><TABLE
1769BORDER="0"
1770BGCOLOR="#D6E8FF"
1771WIDTH="100%"
1772CELLPADDING="6"
1773><TR
1774><TD
1775><PRE
1776CLASS="PROGRAMLISTING"
1777>int xmlSchemaValidateStream (<A
1778HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1779>xmlSchemaValidCtxtPtr</A
1780> ctxt,
1781 <A
1782HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1783>xmlParserInputBufferPtr</A
1784> input,
1785 <A
1786HREF="libxml-encoding.html#XMLCHARENCODING"
1787>xmlCharEncoding</A
1788> enc,
1789 <A
1790HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1791>xmlSAXHandlerPtr</A
1792> sax,
1793 void *user_data);</PRE
1794></TD
1795></TR
1796></TABLE
1797><P
1798>Validate a document tree in memory.</P
1799><P
1800></P
1801><DIV
1802CLASS="INFORMALTABLE"
1803><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001804NAME="AEN33530"
Daniel Veillardaec63562003-03-23 20:42:17 +00001805></A
1806><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001807></P
1808><TABLE
1809BORDER="0"
1810WIDTH="100%"
1811BGCOLOR="#FFD0D0"
1812CELLSPACING="0"
1813CELLPADDING="4"
1814CLASS="CALSTABLE"
1815><TBODY
1816><TR
1817><TD
1818WIDTH="20%"
1819ALIGN="RIGHT"
1820VALIGN="TOP"
1821><TT
1822CLASS="PARAMETER"
1823><I
1824>ctxt</I
1825></TT
1826>&nbsp;:</TD
1827><TD
1828WIDTH="80%"
1829ALIGN="LEFT"
1830VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001831>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001832></TR
1833><TR
1834><TD
1835WIDTH="20%"
1836ALIGN="RIGHT"
1837VALIGN="TOP"
1838><TT
1839CLASS="PARAMETER"
1840><I
1841>input</I
1842></TT
1843>&nbsp;:</TD
1844><TD
1845WIDTH="80%"
1846ALIGN="LEFT"
1847VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001848>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001849></TR
1850><TR
1851><TD
1852WIDTH="20%"
1853ALIGN="RIGHT"
1854VALIGN="TOP"
1855><TT
1856CLASS="PARAMETER"
1857><I
1858>enc</I
1859></TT
1860>&nbsp;:</TD
1861><TD
1862WIDTH="80%"
1863ALIGN="LEFT"
1864VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001865>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001866></TR
1867><TR
1868><TD
1869WIDTH="20%"
1870ALIGN="RIGHT"
1871VALIGN="TOP"
1872><TT
1873CLASS="PARAMETER"
1874><I
1875>sax</I
1876></TT
1877>&nbsp;:</TD
1878><TD
1879WIDTH="80%"
1880ALIGN="LEFT"
1881VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001882>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001883></TR
1884><TR
1885><TD
1886WIDTH="20%"
1887ALIGN="RIGHT"
1888VALIGN="TOP"
1889><TT
1890CLASS="PARAMETER"
1891><I
1892>user_data</I
1893></TT
1894>&nbsp;:</TD
1895><TD
1896WIDTH="80%"
1897ALIGN="LEFT"
1898VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001899>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001900></TR
1901><TR
1902><TD
1903WIDTH="20%"
1904ALIGN="RIGHT"
1905VALIGN="TOP"
1906><SPAN
1907CLASS="emphasis"
1908><I
1909CLASS="EMPHASIS"
1910>Returns</I
1911></SPAN
1912> :</TD
1913><TD
1914WIDTH="80%"
1915ALIGN="LEFT"
1916VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001917>&nbsp;</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001918></TR
1919></TBODY
1920></TABLE
1921><P
1922></P
1923></DIV
1924></DIV
1925></DIV
1926><DIV
1927CLASS="NAVFOOTER"
1928><BR
1929CLEAR="all"><BR><TABLE
1930WIDTH="100%"
1931BORDER="0"
1932BGCOLOR="#000000"
1933CELLPADDING="1"
1934CELLSPACING="0"
1935><TR
1936><TD
1937WIDTH="25%"
1938BGCOLOR="#C00000"
1939ALIGN="left"
1940><A
1941HREF="libxml-xmlunicode.html"
1942><FONT
1943COLOR="#FFFFFF"
1944SIZE="3"
1945><B
1946>&#60;&#60;&#60; Previous Page</B
1947></FONT
1948></A
1949></TD
1950><TD
1951WIDTH="25%"
1952BGCOLOR="#0000C0"
1953ALIGN="center"
1954><FONT
1955COLOR="#FFFFFF"
1956SIZE="3"
1957><B
1958><A
1959HREF="book1.html"
1960><FONT
1961COLOR="#FFFFFF"
1962SIZE="3"
1963><B
1964>Home</B
1965></FONT
1966></A
1967></B
1968></FONT
1969></TD
1970><TD
1971WIDTH="25%"
1972BGCOLOR="#00C000"
1973ALIGN="center"
1974><FONT
1975COLOR="#FFFFFF"
1976SIZE="3"
1977><B
1978><A
1979HREF="libxml-lib.html"
1980><FONT
1981COLOR="#FFFFFF"
1982SIZE="3"
1983><B
1984>Up</B
1985></FONT
1986></A
1987></B
1988></FONT
1989></TD
1990><TD
1991WIDTH="25%"
1992BGCOLOR="#C00000"
1993ALIGN="right"
1994><A
1995HREF="libxml-xmlschemastypes.html"
1996><FONT
1997COLOR="#FFFFFF"
1998SIZE="3"
1999><B
2000>Next Page &#62;&#62;&#62;</B
2001></FONT
2002></A
2003></TD
2004></TR
2005><TR
2006><TD
2007COLSPAN="2"
2008ALIGN="left"
2009><FONT
2010COLOR="#FFFFFF"
2011SIZE="3"
2012><B
2013>xmlunicode</B
2014></FONT
2015></TD
2016><TD
2017COLSPAN="2"
2018ALIGN="right"
2019><FONT
2020COLOR="#FFFFFF"
2021SIZE="3"
2022><B
2023>xmlschemastypes</B
2024></FONT
2025></TD
2026></TR
2027></TABLE
2028></DIV
2029></BODY
2030></HTML
2031>