blob: 19081511179e2458a6f5486ee4d57553dc00d00d [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 Veillardaec63562003-03-23 20:42:17 +0000126NAME="AEN33416"
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 Veillardaec63562003-03-23 20:42:17 +0000134NAME="AEN33419"
135></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 Veillardaec63562003-03-23 20:42:17 +0000328NAME="AEN33466"
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 Veillardaec63562003-03-23 20:42:17 +0000338NAME="AEN33469"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000339></A
340><H2
341>Details</H2
342><DIV
343CLASS="REFSECT2"
344><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000345NAME="AEN33471"
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 Veillardaec63562003-03-23 20:42:17 +0000396NAME="AEN33476"
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 Veillardaec63562003-03-23 20:42:17 +0000440NAME="AEN33481"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000441></A
442><H3
443><A
444NAME="XMLSCHEMAPTR"
445></A
446>xmlSchemaPtr</H3
447><TABLE
448BORDER="0"
449BGCOLOR="#D6E8FF"
450WIDTH="100%"
451CELLPADDING="6"
452><TR
453><TD
454><PRE
455CLASS="PROGRAMLISTING"
456>typedef xmlSchema *xmlSchemaPtr;</PRE
457></TD
458></TR
459></TABLE
460><P
461></P
462></DIV
463><HR><DIV
464CLASS="REFSECT2"
465><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000466NAME="AEN33486"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000467></A
468><H3
469><A
470NAME="XMLSCHEMAVALIDITYERRORFUNC"
471></A
472>xmlSchemaValidityErrorFunc ()</H3
473><TABLE
474BORDER="0"
475BGCOLOR="#D6E8FF"
476WIDTH="100%"
477CELLPADDING="6"
478><TR
479><TD
480><PRE
481CLASS="PROGRAMLISTING"
482>void (*xmlSchemaValidityErrorFunc) (void *ctx,
483 const char *msg,
484 ...);</PRE
485></TD
486></TR
487></TABLE
488><P
489></P
490><DIV
491CLASS="INFORMALTABLE"
492><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000493NAME="AEN33491"
494></A
495><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000496></P
497><TABLE
498BORDER="0"
499WIDTH="100%"
500BGCOLOR="#FFD0D0"
501CELLSPACING="0"
502CELLPADDING="4"
503CLASS="CALSTABLE"
504><TBODY
505><TR
506><TD
507WIDTH="20%"
508ALIGN="RIGHT"
509VALIGN="TOP"
510><TT
511CLASS="PARAMETER"
512><I
513>ctx</I
514></TT
515>&nbsp;:</TD
516><TD
517WIDTH="80%"
518ALIGN="LEFT"
519VALIGN="TOP"
520>&nbsp;</TD
521></TR
522><TR
523><TD
524WIDTH="20%"
525ALIGN="RIGHT"
526VALIGN="TOP"
527><TT
528CLASS="PARAMETER"
529><I
530>msg</I
531></TT
532>&nbsp;:</TD
533><TD
534WIDTH="80%"
535ALIGN="LEFT"
536VALIGN="TOP"
537>&nbsp;</TD
538></TR
539><TR
540><TD
541WIDTH="20%"
542ALIGN="RIGHT"
543VALIGN="TOP"
544><TT
545CLASS="PARAMETER"
546><I
547>...</I
548></TT
549>&nbsp;:</TD
550><TD
551WIDTH="80%"
552ALIGN="LEFT"
553VALIGN="TOP"
554>&nbsp;</TD
555></TR
556></TBODY
557></TABLE
558><P
559></P
560></DIV
561></DIV
562><HR><DIV
563CLASS="REFSECT2"
564><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000565NAME="AEN33508"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000566></A
567><H3
568><A
Daniel Veillard48267432002-10-18 11:21:38 +0000569NAME="XMLSCHEMAVALIDITYWARNINGFUNC"
570></A
571>xmlSchemaValidityWarningFunc ()</H3
572><TABLE
573BORDER="0"
574BGCOLOR="#D6E8FF"
575WIDTH="100%"
576CELLPADDING="6"
577><TR
578><TD
579><PRE
580CLASS="PROGRAMLISTING"
581>void (*xmlSchemaValidityWarningFunc) (void *ctx,
582 const char *msg,
583 ...);</PRE
584></TD
585></TR
586></TABLE
587><P
588></P
589><DIV
590CLASS="INFORMALTABLE"
591><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000592NAME="AEN33513"
593></A
594><P
Daniel Veillard48267432002-10-18 11:21:38 +0000595></P
596><TABLE
597BORDER="0"
598WIDTH="100%"
599BGCOLOR="#FFD0D0"
600CELLSPACING="0"
601CELLPADDING="4"
602CLASS="CALSTABLE"
603><TBODY
604><TR
605><TD
606WIDTH="20%"
607ALIGN="RIGHT"
608VALIGN="TOP"
609><TT
610CLASS="PARAMETER"
611><I
612>ctx</I
613></TT
614>&nbsp;:</TD
615><TD
616WIDTH="80%"
617ALIGN="LEFT"
618VALIGN="TOP"
619>&nbsp;</TD
620></TR
621><TR
622><TD
623WIDTH="20%"
624ALIGN="RIGHT"
625VALIGN="TOP"
626><TT
627CLASS="PARAMETER"
628><I
629>msg</I
630></TT
631>&nbsp;:</TD
632><TD
633WIDTH="80%"
634ALIGN="LEFT"
635VALIGN="TOP"
636>&nbsp;</TD
637></TR
638><TR
639><TD
640WIDTH="20%"
641ALIGN="RIGHT"
642VALIGN="TOP"
643><TT
644CLASS="PARAMETER"
645><I
646>...</I
647></TT
648>&nbsp;:</TD
649><TD
650WIDTH="80%"
651ALIGN="LEFT"
652VALIGN="TOP"
653>&nbsp;</TD
654></TR
655></TBODY
656></TABLE
657><P
658></P
659></DIV
660></DIV
661><HR><DIV
662CLASS="REFSECT2"
663><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000664NAME="AEN33530"
Daniel Veillard48267432002-10-18 11:21:38 +0000665></A
666><H3
667><A
Daniel Veillard80ce3732002-10-07 17:39:30 +0000668NAME="XMLSCHEMAPARSERCTXT"
669></A
670>struct xmlSchemaParserCtxt</H3
671><TABLE
672BORDER="0"
673BGCOLOR="#D6E8FF"
674WIDTH="100%"
675CELLPADDING="6"
676><TR
677><TD
678><PRE
679CLASS="PROGRAMLISTING"
680>struct xmlSchemaParserCtxt;</PRE
681></TD
682></TR
683></TABLE
684><P
685></P
686></DIV
687><HR><DIV
688CLASS="REFSECT2"
689><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000690NAME="AEN33535"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000691></A
692><H3
693><A
694NAME="XMLSCHEMAPARSERCTXTPTR"
695></A
696>xmlSchemaParserCtxtPtr</H3
697><TABLE
698BORDER="0"
699BGCOLOR="#D6E8FF"
700WIDTH="100%"
701CELLPADDING="6"
702><TR
703><TD
704><PRE
705CLASS="PROGRAMLISTING"
706>typedef xmlSchemaParserCtxt *xmlSchemaParserCtxtPtr;</PRE
707></TD
708></TR
709></TABLE
710><P
711></P
712></DIV
713><HR><DIV
714CLASS="REFSECT2"
715><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000716NAME="AEN33540"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000717></A
718><H3
719><A
720NAME="XMLSCHEMAVALIDCTXT"
721></A
722>struct xmlSchemaValidCtxt</H3
723><TABLE
724BORDER="0"
725BGCOLOR="#D6E8FF"
726WIDTH="100%"
727CELLPADDING="6"
728><TR
729><TD
730><PRE
731CLASS="PROGRAMLISTING"
732>struct xmlSchemaValidCtxt;</PRE
733></TD
734></TR
735></TABLE
736><P
737>A Schemas validation context</P
738><P
739></P
740></DIV
741><HR><DIV
742CLASS="REFSECT2"
743><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000744NAME="AEN33546"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000745></A
746><H3
747><A
748NAME="XMLSCHEMAVALIDCTXTPTR"
749></A
750>xmlSchemaValidCtxtPtr</H3
751><TABLE
752BORDER="0"
753BGCOLOR="#D6E8FF"
754WIDTH="100%"
755CELLPADDING="6"
756><TR
757><TD
758><PRE
759CLASS="PROGRAMLISTING"
760>typedef xmlSchemaValidCtxt *xmlSchemaValidCtxtPtr;</PRE
761></TD
762></TR
763></TABLE
764><P
765></P
766></DIV
767><HR><DIV
768CLASS="REFSECT2"
769><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000770NAME="AEN33551"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000771></A
772><H3
773><A
774NAME="XMLSCHEMANEWPARSERCTXT"
775></A
776>xmlSchemaNewParserCtxt ()</H3
777><TABLE
778BORDER="0"
779BGCOLOR="#D6E8FF"
780WIDTH="100%"
781CELLPADDING="6"
782><TR
783><TD
784><PRE
785CLASS="PROGRAMLISTING"
786><A
787HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
788>xmlSchemaParserCtxtPtr</A
789> xmlSchemaNewParserCtxt
790 (const char *URL);</PRE
791></TD
792></TR
793></TABLE
794><P
795>Create an XML Schemas parse context for that file/resource expected
796to contain an XML Schemas file.</P
797><P
798></P
799><DIV
800CLASS="INFORMALTABLE"
801><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000802NAME="AEN33558"
803></A
804><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000805></P
806><TABLE
807BORDER="0"
808WIDTH="100%"
809BGCOLOR="#FFD0D0"
810CELLSPACING="0"
811CELLPADDING="4"
812CLASS="CALSTABLE"
813><TBODY
814><TR
815><TD
816WIDTH="20%"
817ALIGN="RIGHT"
818VALIGN="TOP"
819><TT
820CLASS="PARAMETER"
821><I
822>URL</I
823></TT
824>&nbsp;:</TD
825><TD
826WIDTH="80%"
827ALIGN="LEFT"
828VALIGN="TOP"
829> the location of the schema</TD
830></TR
831><TR
832><TD
833WIDTH="20%"
834ALIGN="RIGHT"
835VALIGN="TOP"
836><SPAN
837CLASS="emphasis"
838><I
839CLASS="EMPHASIS"
840>Returns</I
841></SPAN
842> :</TD
843><TD
844WIDTH="80%"
845ALIGN="LEFT"
846VALIGN="TOP"
847>the parser context or NULL in case of error</TD
848></TR
849></TBODY
850></TABLE
851><P
852></P
853></DIV
854></DIV
855><HR><DIV
856CLASS="REFSECT2"
857><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000858NAME="AEN33571"
859></A
860><H3
861><A
862NAME="XMLSCHEMANEWMEMPARSERCTXT"
863></A
864>xmlSchemaNewMemParserCtxt ()</H3
865><TABLE
866BORDER="0"
867BGCOLOR="#D6E8FF"
868WIDTH="100%"
869CELLPADDING="6"
870><TR
871><TD
872><PRE
873CLASS="PROGRAMLISTING"
874><A
875HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
876>xmlSchemaParserCtxtPtr</A
877> xmlSchemaNewMemParserCtxt
878 (const char *buffer,
879 int size);</PRE
880></TD
881></TR
882></TABLE
883><P
884>Create an XML Schemas parse context for that memory buffer expected
885to contain an XML Schemas file.</P
886><P
887></P
888><DIV
889CLASS="INFORMALTABLE"
890><A
891NAME="AEN33578"
892></A
893><P
894></P
895><TABLE
896BORDER="0"
897WIDTH="100%"
898BGCOLOR="#FFD0D0"
899CELLSPACING="0"
900CELLPADDING="4"
901CLASS="CALSTABLE"
902><TBODY
903><TR
904><TD
905WIDTH="20%"
906ALIGN="RIGHT"
907VALIGN="TOP"
908><TT
909CLASS="PARAMETER"
910><I
911>buffer</I
912></TT
913>&nbsp;:</TD
914><TD
915WIDTH="80%"
916ALIGN="LEFT"
917VALIGN="TOP"
918> a pointer to a char array containing the schemas</TD
919></TR
920><TR
921><TD
922WIDTH="20%"
923ALIGN="RIGHT"
924VALIGN="TOP"
925><TT
926CLASS="PARAMETER"
927><I
928>size</I
929></TT
930>&nbsp;:</TD
931><TD
932WIDTH="80%"
933ALIGN="LEFT"
934VALIGN="TOP"
935> the size of the array</TD
936></TR
937><TR
938><TD
939WIDTH="20%"
940ALIGN="RIGHT"
941VALIGN="TOP"
942><SPAN
943CLASS="emphasis"
944><I
945CLASS="EMPHASIS"
946>Returns</I
947></SPAN
948> :</TD
949><TD
950WIDTH="80%"
951ALIGN="LEFT"
952VALIGN="TOP"
953>the parser context or NULL in case of error</TD
954></TR
955></TBODY
956></TABLE
957><P
958></P
959></DIV
960></DIV
961><HR><DIV
962CLASS="REFSECT2"
963><A
964NAME="AEN33595"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000965></A
966><H3
967><A
968NAME="XMLSCHEMAFREEPARSERCTXT"
969></A
970>xmlSchemaFreeParserCtxt ()</H3
971><TABLE
972BORDER="0"
973BGCOLOR="#D6E8FF"
974WIDTH="100%"
975CELLPADDING="6"
976><TR
977><TD
978><PRE
979CLASS="PROGRAMLISTING"
980>void xmlSchemaFreeParserCtxt (<A
981HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
982>xmlSchemaParserCtxtPtr</A
983> ctxt);</PRE
984></TD
985></TR
986></TABLE
987><P
988>Free the resources associated to the schema parser context</P
989><P
990></P
991><DIV
992CLASS="INFORMALTABLE"
993><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000994NAME="AEN33602"
995></A
996><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000997></P
998><TABLE
999BORDER="0"
1000WIDTH="100%"
1001BGCOLOR="#FFD0D0"
1002CELLSPACING="0"
1003CELLPADDING="4"
1004CLASS="CALSTABLE"
1005><TBODY
1006><TR
1007><TD
1008WIDTH="20%"
1009ALIGN="RIGHT"
1010VALIGN="TOP"
1011><TT
1012CLASS="PARAMETER"
1013><I
1014>ctxt</I
1015></TT
1016>&nbsp;:</TD
1017><TD
1018WIDTH="80%"
1019ALIGN="LEFT"
1020VALIGN="TOP"
1021> the schema parser context</TD
1022></TR
1023></TBODY
1024></TABLE
1025><P
1026></P
1027></DIV
1028></DIV
1029><HR><DIV
1030CLASS="REFSECT2"
1031><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001032NAME="AEN33611"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001033></A
1034><H3
1035><A
1036NAME="XMLSCHEMASETPARSERERRORS"
1037></A
1038>xmlSchemaSetParserErrors ()</H3
1039><TABLE
1040BORDER="0"
1041BGCOLOR="#D6E8FF"
1042WIDTH="100%"
1043CELLPADDING="6"
1044><TR
1045><TD
1046><PRE
1047CLASS="PROGRAMLISTING"
1048>void xmlSchemaSetParserErrors (<A
1049HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1050>xmlSchemaParserCtxtPtr</A
1051> ctxt,
1052 <A
1053HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1054>xmlSchemaValidityErrorFunc</A
1055> err,
1056 <A
1057HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1058>xmlSchemaValidityWarningFunc</A
1059> warn,
1060 void *ctx);</PRE
1061></TD
1062></TR
1063></TABLE
1064><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001065>Set the callback functions used to handle errors for a validation context</P
1066><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001067></P
1068><DIV
1069CLASS="INFORMALTABLE"
1070><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001071NAME="AEN33620"
1072></A
1073><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001074></P
1075><TABLE
1076BORDER="0"
1077WIDTH="100%"
1078BGCOLOR="#FFD0D0"
1079CELLSPACING="0"
1080CELLPADDING="4"
1081CLASS="CALSTABLE"
1082><TBODY
1083><TR
1084><TD
1085WIDTH="20%"
1086ALIGN="RIGHT"
1087VALIGN="TOP"
1088><TT
1089CLASS="PARAMETER"
1090><I
1091>ctxt</I
1092></TT
1093>&nbsp;:</TD
1094><TD
1095WIDTH="80%"
1096ALIGN="LEFT"
1097VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +00001098> a schema validation context</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001099></TR
1100><TR
1101><TD
1102WIDTH="20%"
1103ALIGN="RIGHT"
1104VALIGN="TOP"
1105><TT
1106CLASS="PARAMETER"
1107><I
1108>err</I
1109></TT
1110>&nbsp;:</TD
1111><TD
1112WIDTH="80%"
1113ALIGN="LEFT"
1114VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +00001115> the error callback</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001116></TR
1117><TR
1118><TD
1119WIDTH="20%"
1120ALIGN="RIGHT"
1121VALIGN="TOP"
1122><TT
1123CLASS="PARAMETER"
1124><I
1125>warn</I
1126></TT
1127>&nbsp;:</TD
1128><TD
1129WIDTH="80%"
1130ALIGN="LEFT"
1131VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +00001132> the warning callback</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001133></TR
1134><TR
1135><TD
1136WIDTH="20%"
1137ALIGN="RIGHT"
1138VALIGN="TOP"
1139><TT
1140CLASS="PARAMETER"
1141><I
1142>ctx</I
1143></TT
1144>&nbsp;:</TD
1145><TD
1146WIDTH="80%"
1147ALIGN="LEFT"
1148VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +00001149> contextual data for the callbacks</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001150></TR
1151></TBODY
1152></TABLE
1153><P
1154></P
1155></DIV
1156></DIV
1157><HR><DIV
1158CLASS="REFSECT2"
1159><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001160NAME="AEN33641"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001161></A
1162><H3
1163><A
1164NAME="XMLSCHEMAPARSE"
1165></A
1166>xmlSchemaParse ()</H3
1167><TABLE
1168BORDER="0"
1169BGCOLOR="#D6E8FF"
1170WIDTH="100%"
1171CELLPADDING="6"
1172><TR
1173><TD
1174><PRE
1175CLASS="PROGRAMLISTING"
1176><A
1177HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1178>xmlSchemaPtr</A
1179> xmlSchemaParse (<A
1180HREF="libxml-xmlschemas.html#XMLSCHEMAPARSERCTXTPTR"
1181>xmlSchemaParserCtxtPtr</A
1182> ctxt);</PRE
1183></TD
1184></TR
1185></TABLE
1186><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001187>parse a schema definition resource and build an internal
Daniel Veillard80ce3732002-10-07 17:39:30 +00001188XML Shema struture which can be used to validate instances.
1189*WARNING* this interface is highly subject to change</P
1190><P
1191></P
1192><DIV
1193CLASS="INFORMALTABLE"
1194><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001195NAME="AEN33649"
1196></A
1197><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001198></P
1199><TABLE
1200BORDER="0"
1201WIDTH="100%"
1202BGCOLOR="#FFD0D0"
1203CELLSPACING="0"
1204CELLPADDING="4"
1205CLASS="CALSTABLE"
1206><TBODY
1207><TR
1208><TD
1209WIDTH="20%"
1210ALIGN="RIGHT"
1211VALIGN="TOP"
1212><TT
1213CLASS="PARAMETER"
1214><I
1215>ctxt</I
1216></TT
1217>&nbsp;:</TD
1218><TD
1219WIDTH="80%"
1220ALIGN="LEFT"
1221VALIGN="TOP"
1222> a schema validation context</TD
1223></TR
1224><TR
1225><TD
1226WIDTH="20%"
1227ALIGN="RIGHT"
1228VALIGN="TOP"
1229><SPAN
1230CLASS="emphasis"
1231><I
1232CLASS="EMPHASIS"
1233>Returns</I
1234></SPAN
1235> :</TD
1236><TD
1237WIDTH="80%"
1238ALIGN="LEFT"
1239VALIGN="TOP"
1240>the internal XML Schema structure built from the resource or
Daniel Veillardaec63562003-03-23 20:42:17 +00001241 NULL in case of error</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001242></TR
1243></TBODY
1244></TABLE
1245><P
1246></P
1247></DIV
1248></DIV
1249><HR><DIV
1250CLASS="REFSECT2"
1251><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001252NAME="AEN33662"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001253></A
1254><H3
1255><A
1256NAME="XMLSCHEMAFREE"
1257></A
1258>xmlSchemaFree ()</H3
1259><TABLE
1260BORDER="0"
1261BGCOLOR="#D6E8FF"
1262WIDTH="100%"
1263CELLPADDING="6"
1264><TR
1265><TD
1266><PRE
1267CLASS="PROGRAMLISTING"
1268>void xmlSchemaFree (<A
1269HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1270>xmlSchemaPtr</A
1271> schema);</PRE
1272></TD
1273></TR
1274></TABLE
1275><P
1276>Deallocate a Schema structure.</P
1277><P
1278></P
1279><DIV
1280CLASS="INFORMALTABLE"
1281><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001282NAME="AEN33669"
1283></A
1284><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001285></P
1286><TABLE
1287BORDER="0"
1288WIDTH="100%"
1289BGCOLOR="#FFD0D0"
1290CELLSPACING="0"
1291CELLPADDING="4"
1292CLASS="CALSTABLE"
1293><TBODY
1294><TR
1295><TD
1296WIDTH="20%"
1297ALIGN="RIGHT"
1298VALIGN="TOP"
1299><TT
1300CLASS="PARAMETER"
1301><I
1302>schema</I
1303></TT
1304>&nbsp;:</TD
1305><TD
1306WIDTH="80%"
1307ALIGN="LEFT"
1308VALIGN="TOP"
1309> a schema structure</TD
1310></TR
1311></TBODY
1312></TABLE
1313><P
1314></P
1315></DIV
1316></DIV
1317><HR><DIV
1318CLASS="REFSECT2"
1319><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001320NAME="AEN33678"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001321></A
1322><H3
1323><A
1324NAME="XMLSCHEMADUMP"
1325></A
1326>xmlSchemaDump ()</H3
1327><TABLE
1328BORDER="0"
1329BGCOLOR="#D6E8FF"
1330WIDTH="100%"
1331CELLPADDING="6"
1332><TR
1333><TD
1334><PRE
1335CLASS="PROGRAMLISTING"
1336>void xmlSchemaDump (<GTKDOCLINK
1337HREF="FILE-CAPS"
1338>FILE</GTKDOCLINK
1339> *output,
1340 <A
1341HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1342>xmlSchemaPtr</A
1343> schema);</PRE
1344></TD
1345></TR
1346></TABLE
1347><P
1348>Dump a Schema structure.</P
1349><P
1350></P
1351><DIV
1352CLASS="INFORMALTABLE"
1353><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001354NAME="AEN33686"
1355></A
1356><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001357></P
1358><TABLE
1359BORDER="0"
1360WIDTH="100%"
1361BGCOLOR="#FFD0D0"
1362CELLSPACING="0"
1363CELLPADDING="4"
1364CLASS="CALSTABLE"
1365><TBODY
1366><TR
1367><TD
1368WIDTH="20%"
1369ALIGN="RIGHT"
1370VALIGN="TOP"
1371><TT
1372CLASS="PARAMETER"
1373><I
1374>output</I
1375></TT
1376>&nbsp;:</TD
1377><TD
1378WIDTH="80%"
1379ALIGN="LEFT"
1380VALIGN="TOP"
1381> the file output</TD
1382></TR
1383><TR
1384><TD
1385WIDTH="20%"
1386ALIGN="RIGHT"
1387VALIGN="TOP"
1388><TT
1389CLASS="PARAMETER"
1390><I
1391>schema</I
1392></TT
1393>&nbsp;:</TD
1394><TD
1395WIDTH="80%"
1396ALIGN="LEFT"
1397VALIGN="TOP"
1398> a schema structure</TD
1399></TR
1400></TBODY
1401></TABLE
1402><P
1403></P
1404></DIV
1405></DIV
1406><HR><DIV
1407CLASS="REFSECT2"
1408><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001409NAME="AEN33699"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001410></A
1411><H3
1412><A
1413NAME="XMLSCHEMASETVALIDERRORS"
1414></A
1415>xmlSchemaSetValidErrors ()</H3
1416><TABLE
1417BORDER="0"
1418BGCOLOR="#D6E8FF"
1419WIDTH="100%"
1420CELLPADDING="6"
1421><TR
1422><TD
1423><PRE
1424CLASS="PROGRAMLISTING"
1425>void xmlSchemaSetValidErrors (<A
1426HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1427>xmlSchemaValidCtxtPtr</A
1428> ctxt,
1429 <A
1430HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYERRORFUNC"
1431>xmlSchemaValidityErrorFunc</A
1432> err,
1433 <A
1434HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDITYWARNINGFUNC"
1435>xmlSchemaValidityWarningFunc</A
1436> warn,
1437 void *ctx);</PRE
1438></TD
1439></TR
1440></TABLE
1441><P
1442>Set the error and warning callback informations</P
1443><P
1444></P
1445><DIV
1446CLASS="INFORMALTABLE"
1447><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001448NAME="AEN33708"
1449></A
1450><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001451></P
1452><TABLE
1453BORDER="0"
1454WIDTH="100%"
1455BGCOLOR="#FFD0D0"
1456CELLSPACING="0"
1457CELLPADDING="4"
1458CLASS="CALSTABLE"
1459><TBODY
1460><TR
1461><TD
1462WIDTH="20%"
1463ALIGN="RIGHT"
1464VALIGN="TOP"
1465><TT
1466CLASS="PARAMETER"
1467><I
1468>ctxt</I
1469></TT
1470>&nbsp;:</TD
1471><TD
1472WIDTH="80%"
1473ALIGN="LEFT"
1474VALIGN="TOP"
1475> a schema validation context</TD
1476></TR
1477><TR
1478><TD
1479WIDTH="20%"
1480ALIGN="RIGHT"
1481VALIGN="TOP"
1482><TT
1483CLASS="PARAMETER"
1484><I
1485>err</I
1486></TT
1487>&nbsp;:</TD
1488><TD
1489WIDTH="80%"
1490ALIGN="LEFT"
1491VALIGN="TOP"
1492> the error function</TD
1493></TR
1494><TR
1495><TD
1496WIDTH="20%"
1497ALIGN="RIGHT"
1498VALIGN="TOP"
1499><TT
1500CLASS="PARAMETER"
1501><I
1502>warn</I
1503></TT
1504>&nbsp;:</TD
1505><TD
1506WIDTH="80%"
1507ALIGN="LEFT"
1508VALIGN="TOP"
1509> the warning function</TD
1510></TR
1511><TR
1512><TD
1513WIDTH="20%"
1514ALIGN="RIGHT"
1515VALIGN="TOP"
1516><TT
1517CLASS="PARAMETER"
1518><I
1519>ctx</I
1520></TT
1521>&nbsp;:</TD
1522><TD
1523WIDTH="80%"
1524ALIGN="LEFT"
1525VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +00001526> the functions context</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001527></TR
1528></TBODY
1529></TABLE
1530><P
1531></P
1532></DIV
1533></DIV
1534><HR><DIV
1535CLASS="REFSECT2"
1536><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001537NAME="AEN33729"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001538></A
1539><H3
1540><A
1541NAME="XMLSCHEMANEWVALIDCTXT"
1542></A
1543>xmlSchemaNewValidCtxt ()</H3
1544><TABLE
1545BORDER="0"
1546BGCOLOR="#D6E8FF"
1547WIDTH="100%"
1548CELLPADDING="6"
1549><TR
1550><TD
1551><PRE
1552CLASS="PROGRAMLISTING"
1553><A
1554HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1555>xmlSchemaValidCtxtPtr</A
1556> xmlSchemaNewValidCtxt (<A
1557HREF="libxml-xmlschemas.html#XMLSCHEMAPTR"
1558>xmlSchemaPtr</A
1559> schema);</PRE
1560></TD
1561></TR
1562></TABLE
1563><P
1564>Create an XML Schemas validation context based on the given schema</P
1565><P
1566></P
1567><DIV
1568CLASS="INFORMALTABLE"
1569><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001570NAME="AEN33737"
1571></A
1572><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001573></P
1574><TABLE
1575BORDER="0"
1576WIDTH="100%"
1577BGCOLOR="#FFD0D0"
1578CELLSPACING="0"
1579CELLPADDING="4"
1580CLASS="CALSTABLE"
1581><TBODY
1582><TR
1583><TD
1584WIDTH="20%"
1585ALIGN="RIGHT"
1586VALIGN="TOP"
1587><TT
1588CLASS="PARAMETER"
1589><I
1590>schema</I
1591></TT
1592>&nbsp;:</TD
1593><TD
1594WIDTH="80%"
1595ALIGN="LEFT"
1596VALIGN="TOP"
1597> a precompiled XML Schemas</TD
1598></TR
1599><TR
1600><TD
1601WIDTH="20%"
1602ALIGN="RIGHT"
1603VALIGN="TOP"
1604><SPAN
1605CLASS="emphasis"
1606><I
1607CLASS="EMPHASIS"
1608>Returns</I
1609></SPAN
1610> :</TD
1611><TD
1612WIDTH="80%"
1613ALIGN="LEFT"
1614VALIGN="TOP"
1615>the validation context or NULL in case of error</TD
1616></TR
1617></TBODY
1618></TABLE
1619><P
1620></P
1621></DIV
1622></DIV
1623><HR><DIV
1624CLASS="REFSECT2"
1625><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001626NAME="AEN33750"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001627></A
1628><H3
1629><A
1630NAME="XMLSCHEMAFREEVALIDCTXT"
1631></A
1632>xmlSchemaFreeValidCtxt ()</H3
1633><TABLE
1634BORDER="0"
1635BGCOLOR="#D6E8FF"
1636WIDTH="100%"
1637CELLPADDING="6"
1638><TR
1639><TD
1640><PRE
1641CLASS="PROGRAMLISTING"
1642>void xmlSchemaFreeValidCtxt (<A
1643HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1644>xmlSchemaValidCtxtPtr</A
1645> ctxt);</PRE
1646></TD
1647></TR
1648></TABLE
1649><P
1650>Free the resources associated to the schema validation context</P
1651><P
1652></P
1653><DIV
1654CLASS="INFORMALTABLE"
1655><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001656NAME="AEN33757"
1657></A
1658><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001659></P
1660><TABLE
1661BORDER="0"
1662WIDTH="100%"
1663BGCOLOR="#FFD0D0"
1664CELLSPACING="0"
1665CELLPADDING="4"
1666CLASS="CALSTABLE"
1667><TBODY
1668><TR
1669><TD
1670WIDTH="20%"
1671ALIGN="RIGHT"
1672VALIGN="TOP"
1673><TT
1674CLASS="PARAMETER"
1675><I
1676>ctxt</I
1677></TT
1678>&nbsp;:</TD
1679><TD
1680WIDTH="80%"
1681ALIGN="LEFT"
1682VALIGN="TOP"
1683> the schema validation context</TD
1684></TR
1685></TBODY
1686></TABLE
1687><P
1688></P
1689></DIV
1690></DIV
1691><HR><DIV
1692CLASS="REFSECT2"
1693><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001694NAME="AEN33766"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001695></A
1696><H3
1697><A
1698NAME="XMLSCHEMAVALIDATEDOC"
1699></A
1700>xmlSchemaValidateDoc ()</H3
1701><TABLE
1702BORDER="0"
1703BGCOLOR="#D6E8FF"
1704WIDTH="100%"
1705CELLPADDING="6"
1706><TR
1707><TD
1708><PRE
1709CLASS="PROGRAMLISTING"
1710>int xmlSchemaValidateDoc (<A
1711HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1712>xmlSchemaValidCtxtPtr</A
1713> ctxt,
1714 <A
1715HREF="libxml-tree.html#XMLDOCPTR"
1716>xmlDocPtr</A
1717> instance);</PRE
1718></TD
1719></TR
1720></TABLE
1721><P
1722>Validate a document tree in memory.</P
1723><P
1724></P
1725><DIV
1726CLASS="INFORMALTABLE"
1727><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001728NAME="AEN33774"
1729></A
1730><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001731></P
1732><TABLE
1733BORDER="0"
1734WIDTH="100%"
1735BGCOLOR="#FFD0D0"
1736CELLSPACING="0"
1737CELLPADDING="4"
1738CLASS="CALSTABLE"
1739><TBODY
1740><TR
1741><TD
1742WIDTH="20%"
1743ALIGN="RIGHT"
1744VALIGN="TOP"
1745><TT
1746CLASS="PARAMETER"
1747><I
1748>ctxt</I
1749></TT
1750>&nbsp;:</TD
1751><TD
1752WIDTH="80%"
1753ALIGN="LEFT"
1754VALIGN="TOP"
1755> a schema validation context</TD
1756></TR
1757><TR
1758><TD
1759WIDTH="20%"
1760ALIGN="RIGHT"
1761VALIGN="TOP"
1762><TT
1763CLASS="PARAMETER"
1764><I
1765>instance</I
1766></TT
1767>&nbsp;:</TD
1768><TD
1769WIDTH="80%"
1770ALIGN="LEFT"
1771VALIGN="TOP"
1772>&nbsp;</TD
1773></TR
1774><TR
1775><TD
1776WIDTH="20%"
1777ALIGN="RIGHT"
1778VALIGN="TOP"
1779><SPAN
1780CLASS="emphasis"
1781><I
1782CLASS="EMPHASIS"
1783>Returns</I
1784></SPAN
1785> :</TD
1786><TD
1787WIDTH="80%"
1788ALIGN="LEFT"
1789VALIGN="TOP"
1790>0 if the document is schemas valid, a positive error code
Daniel Veillardaec63562003-03-23 20:42:17 +00001791 number otherwise and -1 in case of internal or API error.</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001792></TR
1793></TBODY
1794></TABLE
1795><P
1796></P
1797></DIV
1798></DIV
1799><HR><DIV
1800CLASS="REFSECT2"
1801><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001802NAME="AEN33791"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001803></A
1804><H3
1805><A
1806NAME="XMLSCHEMAVALIDATESTREAM"
1807></A
1808>xmlSchemaValidateStream ()</H3
1809><TABLE
1810BORDER="0"
1811BGCOLOR="#D6E8FF"
1812WIDTH="100%"
1813CELLPADDING="6"
1814><TR
1815><TD
1816><PRE
1817CLASS="PROGRAMLISTING"
1818>int xmlSchemaValidateStream (<A
1819HREF="libxml-xmlschemas.html#XMLSCHEMAVALIDCTXTPTR"
1820>xmlSchemaValidCtxtPtr</A
1821> ctxt,
1822 <A
1823HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1824>xmlParserInputBufferPtr</A
1825> input,
1826 <A
1827HREF="libxml-encoding.html#XMLCHARENCODING"
1828>xmlCharEncoding</A
1829> enc,
1830 <A
1831HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1832>xmlSAXHandlerPtr</A
1833> sax,
1834 void *user_data);</PRE
1835></TD
1836></TR
1837></TABLE
1838><P
1839>Validate a document tree in memory.</P
1840><P
1841></P
1842><DIV
1843CLASS="INFORMALTABLE"
1844><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001845NAME="AEN33801"
1846></A
1847><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001848></P
1849><TABLE
1850BORDER="0"
1851WIDTH="100%"
1852BGCOLOR="#FFD0D0"
1853CELLSPACING="0"
1854CELLPADDING="4"
1855CLASS="CALSTABLE"
1856><TBODY
1857><TR
1858><TD
1859WIDTH="20%"
1860ALIGN="RIGHT"
1861VALIGN="TOP"
1862><TT
1863CLASS="PARAMETER"
1864><I
1865>ctxt</I
1866></TT
1867>&nbsp;:</TD
1868><TD
1869WIDTH="80%"
1870ALIGN="LEFT"
1871VALIGN="TOP"
1872> a schema validation context</TD
1873></TR
1874><TR
1875><TD
1876WIDTH="20%"
1877ALIGN="RIGHT"
1878VALIGN="TOP"
1879><TT
1880CLASS="PARAMETER"
1881><I
1882>input</I
1883></TT
1884>&nbsp;:</TD
1885><TD
1886WIDTH="80%"
1887ALIGN="LEFT"
1888VALIGN="TOP"
1889> the input to use for reading the data</TD
1890></TR
1891><TR
1892><TD
1893WIDTH="20%"
1894ALIGN="RIGHT"
1895VALIGN="TOP"
1896><TT
1897CLASS="PARAMETER"
1898><I
1899>enc</I
1900></TT
1901>&nbsp;:</TD
1902><TD
1903WIDTH="80%"
1904ALIGN="LEFT"
1905VALIGN="TOP"
1906> an optional encoding information</TD
1907></TR
1908><TR
1909><TD
1910WIDTH="20%"
1911ALIGN="RIGHT"
1912VALIGN="TOP"
1913><TT
1914CLASS="PARAMETER"
1915><I
1916>sax</I
1917></TT
1918>&nbsp;:</TD
1919><TD
1920WIDTH="80%"
1921ALIGN="LEFT"
1922VALIGN="TOP"
1923> a SAX handler for the resulting events</TD
1924></TR
1925><TR
1926><TD
1927WIDTH="20%"
1928ALIGN="RIGHT"
1929VALIGN="TOP"
1930><TT
1931CLASS="PARAMETER"
1932><I
1933>user_data</I
1934></TT
1935>&nbsp;:</TD
1936><TD
1937WIDTH="80%"
1938ALIGN="LEFT"
1939VALIGN="TOP"
1940> the context to provide to the SAX handler.</TD
1941></TR
1942><TR
1943><TD
1944WIDTH="20%"
1945ALIGN="RIGHT"
1946VALIGN="TOP"
1947><SPAN
1948CLASS="emphasis"
1949><I
1950CLASS="EMPHASIS"
1951>Returns</I
1952></SPAN
1953> :</TD
1954><TD
1955WIDTH="80%"
1956ALIGN="LEFT"
1957VALIGN="TOP"
1958>0 if the document is schemas valid, a positive error code
Daniel Veillardaec63562003-03-23 20:42:17 +00001959 number otherwise and -1 in case of internal or API error.</TD
Daniel Veillard80ce3732002-10-07 17:39:30 +00001960></TR
1961></TBODY
1962></TABLE
1963><P
1964></P
1965></DIV
1966></DIV
1967></DIV
1968><DIV
1969CLASS="NAVFOOTER"
1970><BR
1971CLEAR="all"><BR><TABLE
1972WIDTH="100%"
1973BORDER="0"
1974BGCOLOR="#000000"
1975CELLPADDING="1"
1976CELLSPACING="0"
1977><TR
1978><TD
1979WIDTH="25%"
1980BGCOLOR="#C00000"
1981ALIGN="left"
1982><A
1983HREF="libxml-xmlunicode.html"
1984><FONT
1985COLOR="#FFFFFF"
1986SIZE="3"
1987><B
1988>&#60;&#60;&#60; Previous Page</B
1989></FONT
1990></A
1991></TD
1992><TD
1993WIDTH="25%"
1994BGCOLOR="#0000C0"
1995ALIGN="center"
1996><FONT
1997COLOR="#FFFFFF"
1998SIZE="3"
1999><B
2000><A
2001HREF="book1.html"
2002><FONT
2003COLOR="#FFFFFF"
2004SIZE="3"
2005><B
2006>Home</B
2007></FONT
2008></A
2009></B
2010></FONT
2011></TD
2012><TD
2013WIDTH="25%"
2014BGCOLOR="#00C000"
2015ALIGN="center"
2016><FONT
2017COLOR="#FFFFFF"
2018SIZE="3"
2019><B
2020><A
2021HREF="libxml-lib.html"
2022><FONT
2023COLOR="#FFFFFF"
2024SIZE="3"
2025><B
2026>Up</B
2027></FONT
2028></A
2029></B
2030></FONT
2031></TD
2032><TD
2033WIDTH="25%"
2034BGCOLOR="#C00000"
2035ALIGN="right"
2036><A
2037HREF="libxml-xmlschemastypes.html"
2038><FONT
2039COLOR="#FFFFFF"
2040SIZE="3"
2041><B
2042>Next Page &#62;&#62;&#62;</B
2043></FONT
2044></A
2045></TD
2046></TR
2047><TR
2048><TD
2049COLSPAN="2"
2050ALIGN="left"
2051><FONT
2052COLOR="#FFFFFF"
2053SIZE="3"
2054><B
2055>xmlunicode</B
2056></FONT
2057></TD
2058><TD
2059COLSPAN="2"
2060ALIGN="right"
2061><FONT
2062COLOR="#FFFFFF"
2063SIZE="3"
2064><B
2065>xmlschemastypes</B
2066></FONT
2067></TD
2068></TR
2069></TABLE
2070></DIV
2071></BODY
2072></HTML
2073>