blob: 353d7e27aebe8fe673346ecd5b56e34ad2d7ecbe [file] [log] [blame]
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001<HTML
2><HEAD
3><TITLE
4>xmlIO</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
Daniel Veillardaeea04f2000-01-25 19:27:27 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
14REL="PREVIOUS"
15TITLE="nanoftp"
16HREF="gnome-xml-nanoftp.html"><LINK
17REL="NEXT"
18TITLE="parserInternals"
19HREF="gnome-xml-parserinternals.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
47HREF="gnome-xml-nanoftp.html"
48><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
85HREF="libxml-lib.html"
86><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
100><A
101HREF="gnome-xml-parserinternals.html"
102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
110></TR
111></TABLE
112></DIV
113><H1
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000114>xmlIO</H1
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000118NAME="AEN13952"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>xmlIO &#8212; </DIV
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000126NAME="AEN13955"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000141int (<A
142HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK"
143>*xmlInputMatchCallback</A
144>) (char const *filename);
145void* (<A
146HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK"
147>*xmlInputOpenCallback</A
148>) (char const *filename);
149int (<A
150HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK"
151>*xmlInputReadCallback</A
152>) (void *context,
153 char *buffer,
154 int len);
155void (<A
156HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK"
157>*xmlInputCloseCallback</A
158>) (void *context);
159struct <A
160HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFER"
161>xmlParserInputBuffer</A
162>;
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000163typedef <A
164HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
165>xmlParserInputBufferPtr</A
166>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000167int (<A
168HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
169>*xmlOutputMatchCallback</A
170>) (char const *filename);
171void* (<A
172HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK"
173>*xmlOutputOpenCallback</A
174>) (char const *filename);
175int (<A
176HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK"
177>*xmlOutputWriteCallback</A
178>) (void *context,
179 const char *buffer,
180 int len);
181void (<A
182HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
183>*xmlOutputCloseCallback</A
184>) (void *context);
185struct <A
186HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER"
187>xmlOutputBuffer</A
188>;
189typedef <A
190HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
191>xmlOutputBufferPtr</A
192>;
Daniel Veillard7e99c632000-10-06 12:59:53 +0000193void <A
194HREF="gnome-xml-xmlio.html#XMLREGISTERDEFAULTINPUTCALLBACKS"
195>xmlRegisterDefaultInputCallbacks</A
196>
197 (void);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000198<A
199HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
200>xmlParserInputBufferPtr</A
201> <A
202HREF="gnome-xml-xmlio.html#XMLALLOCPARSERINPUTBUFFER"
203>xmlAllocParserInputBuffer</A
204>
205 (<A
206HREF="gnome-xml-encoding.html#XMLCHARENCODING"
207>xmlCharEncoding</A
208> enc);
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000209<A
210HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
211>xmlParserInputBufferPtr</A
212> <A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000213HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFNAME"
214>xmlParserInputBufferCreateFname</A
215>
216 (const char *URI,
217 <A
218HREF="gnome-xml-encoding.html#XMLCHARENCODING"
219>xmlCharEncoding</A
220> enc);
221<A
222HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
223>xmlParserInputBufferPtr</A
224> <A
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000225HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILENAME"
226>xmlParserInputBufferCreateFilename</A
227>
Daniel Veillard06047432000-04-24 11:33:38 +0000228 (const char *URI,
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000229 <A
230HREF="gnome-xml-encoding.html#XMLCHARENCODING"
231>xmlCharEncoding</A
232> enc);
233<A
234HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
235>xmlParserInputBufferPtr</A
236> <A
237HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILE"
238>xmlParserInputBufferCreateFile</A
239>
240 (<GTKDOCLINK
241HREF="FILE"
242>FILE</GTKDOCLINK
243> *file,
244 <A
245HREF="gnome-xml-encoding.html#XMLCHARENCODING"
246>xmlCharEncoding</A
247> enc);
248<A
249HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
250>xmlParserInputBufferPtr</A
251> <A
252HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFD"
253>xmlParserInputBufferCreateFd</A
254>
255 (int fd,
256 <A
257HREF="gnome-xml-encoding.html#XMLCHARENCODING"
258>xmlCharEncoding</A
259> enc);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000260<A
261HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
262>xmlParserInputBufferPtr</A
263> <A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000264HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEMEM"
265>xmlParserInputBufferCreateMem</A
266>
267 (const char *mem,
268 int size,
269 <A
270HREF="gnome-xml-encoding.html#XMLCHARENCODING"
271>xmlCharEncoding</A
272> enc);
273<A
274HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
275>xmlParserInputBufferPtr</A
276> <A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000277HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEIO"
278>xmlParserInputBufferCreateIO</A
279>
280 (<A
281HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK"
282>xmlInputReadCallback</A
283> ioread,
284 <A
285HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK"
286>xmlInputCloseCallback</A
287> ioclose,
288 void *ioctx,
289 <A
290HREF="gnome-xml-encoding.html#XMLCHARENCODING"
291>xmlCharEncoding</A
292> enc);
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000293int <A
294HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERREAD"
295>xmlParserInputBufferRead</A
296> (<A
297HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
298>xmlParserInputBufferPtr</A
299> in,
300 int len);
301int <A
302HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERGROW"
303>xmlParserInputBufferGrow</A
304> (<A
305HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
306>xmlParserInputBufferPtr</A
307> in,
308 int len);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000309int <A
310HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPUSH"
311>xmlParserInputBufferPush</A
312> (<A
313HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
314>xmlParserInputBufferPtr</A
315> in,
316 int len,
317 const char *buf);
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000318void <A
319HREF="gnome-xml-xmlio.html#XMLFREEPARSERINPUTBUFFER"
320>xmlFreeParserInputBuffer</A
321> (<A
322HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
323>xmlParserInputBufferPtr</A
324> in);
325char* <A
326HREF="gnome-xml-xmlio.html#XMLPARSERGETDIRECTORY"
327>xmlParserGetDirectory</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000328> (const char *filename);
329int <A
330HREF="gnome-xml-xmlio.html#XMLREGISTERINPUTCALLBACKS"
331>xmlRegisterInputCallbacks</A
332> (<A
333HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK"
334>xmlInputMatchCallback</A
335> match,
336 <A
337HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK"
338>xmlInputOpenCallback</A
339> open,
340 <A
341HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK"
342>xmlInputReadCallback</A
343> read,
344 <A
345HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK"
346>xmlInputCloseCallback</A
347> close);
Daniel Veillard7e99c632000-10-06 12:59:53 +0000348void <A
349HREF="gnome-xml-xmlio.html#XMLREGISTERDEFAULTOUTPUTCALLBACKS"
350>xmlRegisterDefaultOutputCallbacks</A
351>
352 (void);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000353<A
354HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
355>xmlOutputBufferPtr</A
356> <A
357HREF="gnome-xml-xmlio.html#XMLALLOCOUTPUTBUFFER"
358>xmlAllocOutputBuffer</A
359> (<A
360HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
361>xmlCharEncodingHandlerPtr</A
362> encoder);
363<A
364HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
365>xmlOutputBufferPtr</A
366> <A
367HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFILENAME"
368>xmlOutputBufferCreateFilename</A
369>
370 (const char *URI,
371 <A
372HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
373>xmlCharEncodingHandlerPtr</A
374> encoder,
375 int compression);
376<A
377HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
378>xmlOutputBufferPtr</A
379> <A
380HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFILE"
381>xmlOutputBufferCreateFile</A
382>
383 (<GTKDOCLINK
384HREF="FILE"
385>FILE</GTKDOCLINK
386> *file,
387 <A
388HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
389>xmlCharEncodingHandlerPtr</A
390> encoder);
391<A
392HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
393>xmlOutputBufferPtr</A
394> <A
395HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFD"
396>xmlOutputBufferCreateFd</A
397> (int fd,
398 <A
399HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
400>xmlCharEncodingHandlerPtr</A
401> encoder);
402<A
403HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
404>xmlOutputBufferPtr</A
405> <A
406HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEIO"
407>xmlOutputBufferCreateIO</A
408> (<A
409HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK"
410>xmlOutputWriteCallback</A
411> iowrite,
412 <A
413HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
414>xmlOutputCloseCallback</A
415> ioclose,
416 void *ioctx,
417 <A
418HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
419>xmlCharEncodingHandlerPtr</A
420> encoder);
421int <A
422HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERWRITE"
423>xmlOutputBufferWrite</A
424> (<A
425HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
426>xmlOutputBufferPtr</A
427> out,
428 int len,
429 const char *buf);
430int <A
431HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERWRITESTRING"
432>xmlOutputBufferWriteString</A
433> (<A
434HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
435>xmlOutputBufferPtr</A
436> out,
437 const char *str);
438int <A
439HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERFLUSH"
440>xmlOutputBufferFlush</A
441> (<A
442HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
443>xmlOutputBufferPtr</A
444> out);
445int <A
446HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCLOSE"
447>xmlOutputBufferClose</A
448> (<A
449HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
450>xmlOutputBufferPtr</A
451> out);
452int <A
453HREF="gnome-xml-xmlio.html#XMLREGISTEROUTPUTCALLBACKS"
454>xmlRegisterOutputCallbacks</A
455> (<A
456HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
457>xmlOutputMatchCallback</A
458> match,
459 <A
460HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK"
461>xmlOutputOpenCallback</A
462> open,
463 <A
464HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK"
465>xmlOutputWriteCallback</A
466> write,
467 <A
468HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
469>xmlOutputCloseCallback</A
470> close);
471int <A
472HREF="gnome-xml-xmlio.html#XMLSAVEFILETO"
473>xmlSaveFileTo</A
474> (<A
475HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER"
476>xmlOutputBuffer</A
477> *buf,
478 <A
479HREF="gnome-xml-tree.html#XMLDOCPTR"
480>xmlDocPtr</A
481> cur,
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000482 const char *encoding);
483void <A
484HREF="gnome-xml-xmlio.html#XMLNODEDUMPOUTPUT"
485>xmlNodeDumpOutput</A
486> (<A
487HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
488>xmlOutputBufferPtr</A
489> buf,
490 <A
491HREF="gnome-xml-tree.html#XMLDOCPTR"
492>xmlDocPtr</A
493> doc,
494 <A
495HREF="gnome-xml-tree.html#XMLNODEPTR"
496>xmlNodePtr</A
497> cur,
498 int level,
499 int format,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000500 const char *encoding);</PRE
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000501></TD
502></TR
503></TABLE
504></DIV
505><DIV
506CLASS="REFSECT1"
507><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000508NAME="AEN14048"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000509></A
510><H2
511>Description</H2
512><P
513></P
514></DIV
515><DIV
516CLASS="REFSECT1"
517><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000518NAME="AEN14051"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000519></A
520><H2
521>Details</H2
522><DIV
523CLASS="REFSECT2"
524><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000525NAME="AEN14053"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000526></A
527><H3
528><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000529NAME="XMLINPUTMATCHCALLBACK"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000530></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000531>xmlInputMatchCallback ()</H3
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000532><TABLE
533BORDER="0"
534BGCOLOR="#D6E8FF"
535WIDTH="100%"
536CELLPADDING="6"
537><TR
538><TD
539><PRE
540CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000541>int (*xmlInputMatchCallback) (char const *filename);</PRE
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000542></TD
543></TR
544></TABLE
545><P
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000546></P
547><DIV
548CLASS="INFORMALTABLE"
549><P
550></P
551><TABLE
552BORDER="0"
553WIDTH="100%"
554BGCOLOR="#FFD0D0"
555CELLSPACING="0"
556CELLPADDING="4"
557CLASS="CALSTABLE"
558><TR
559><TD
560WIDTH="20%"
561ALIGN="RIGHT"
562VALIGN="TOP"
563><TT
564CLASS="PARAMETER"
565><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000566>filename</I
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000567></TT
568>&nbsp;:</TD
569><TD
570WIDTH="80%"
571ALIGN="LEFT"
572VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000573>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000574></TR
575><TR
576><TD
577WIDTH="20%"
578ALIGN="RIGHT"
579VALIGN="TOP"
580><I
581CLASS="EMPHASIS"
582>Returns</I
583> :</TD
584><TD
585WIDTH="80%"
586ALIGN="LEFT"
587VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000588>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000589></TR
590></TABLE
591><P
592></P
593></DIV
594></DIV
595><HR><DIV
596CLASS="REFSECT2"
597><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000598NAME="AEN14071"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000599></A
600><H3
601><A
602NAME="XMLINPUTOPENCALLBACK"
603></A
604>xmlInputOpenCallback ()</H3
605><TABLE
606BORDER="0"
607BGCOLOR="#D6E8FF"
608WIDTH="100%"
609CELLPADDING="6"
610><TR
611><TD
612><PRE
613CLASS="PROGRAMLISTING"
614>void* (*xmlInputOpenCallback) (char const *filename);</PRE
615></TD
616></TR
617></TABLE
618><P
619></P
620><DIV
621CLASS="INFORMALTABLE"
622><P
623></P
624><TABLE
625BORDER="0"
626WIDTH="100%"
627BGCOLOR="#FFD0D0"
628CELLSPACING="0"
629CELLPADDING="4"
630CLASS="CALSTABLE"
631><TR
632><TD
633WIDTH="20%"
634ALIGN="RIGHT"
635VALIGN="TOP"
636><TT
637CLASS="PARAMETER"
638><I
639>filename</I
640></TT
641>&nbsp;:</TD
642><TD
643WIDTH="80%"
644ALIGN="LEFT"
645VALIGN="TOP"
646>&nbsp;</TD
647></TR
648></TABLE
649><P
650></P
651></DIV
652></DIV
653><HR><DIV
654CLASS="REFSECT2"
655><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000656NAME="AEN14085"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000657></A
658><H3
659><A
660NAME="XMLINPUTREADCALLBACK"
661></A
662>xmlInputReadCallback ()</H3
663><TABLE
664BORDER="0"
665BGCOLOR="#D6E8FF"
666WIDTH="100%"
667CELLPADDING="6"
668><TR
669><TD
670><PRE
671CLASS="PROGRAMLISTING"
672>int (*xmlInputReadCallback) (void *context,
673 char *buffer,
674 int len);</PRE
675></TD
676></TR
677></TABLE
678><P
679></P
680><DIV
681CLASS="INFORMALTABLE"
682><P
683></P
684><TABLE
685BORDER="0"
686WIDTH="100%"
687BGCOLOR="#FFD0D0"
688CELLSPACING="0"
689CELLPADDING="4"
690CLASS="CALSTABLE"
691><TR
692><TD
693WIDTH="20%"
694ALIGN="RIGHT"
695VALIGN="TOP"
696><TT
697CLASS="PARAMETER"
698><I
699>context</I
700></TT
701>&nbsp;:</TD
702><TD
703WIDTH="80%"
704ALIGN="LEFT"
705VALIGN="TOP"
706>&nbsp;</TD
707></TR
708><TR
709><TD
710WIDTH="20%"
711ALIGN="RIGHT"
712VALIGN="TOP"
713><TT
714CLASS="PARAMETER"
715><I
716>buffer</I
717></TT
718>&nbsp;:</TD
719><TD
720WIDTH="80%"
721ALIGN="LEFT"
722VALIGN="TOP"
723>&nbsp;</TD
724></TR
725><TR
726><TD
727WIDTH="20%"
728ALIGN="RIGHT"
729VALIGN="TOP"
730><TT
731CLASS="PARAMETER"
732><I
733>len</I
734></TT
735>&nbsp;:</TD
736><TD
737WIDTH="80%"
738ALIGN="LEFT"
739VALIGN="TOP"
740>&nbsp;</TD
741></TR
742><TR
743><TD
744WIDTH="20%"
745ALIGN="RIGHT"
746VALIGN="TOP"
747><I
748CLASS="EMPHASIS"
749>Returns</I
750> :</TD
751><TD
752WIDTH="80%"
753ALIGN="LEFT"
754VALIGN="TOP"
755>&nbsp;</TD
756></TR
757></TABLE
758><P
759></P
760></DIV
761></DIV
762><HR><DIV
763CLASS="REFSECT2"
764><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000765NAME="AEN14111"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000766></A
767><H3
768><A
769NAME="XMLINPUTCLOSECALLBACK"
770></A
771>xmlInputCloseCallback ()</H3
772><TABLE
773BORDER="0"
774BGCOLOR="#D6E8FF"
775WIDTH="100%"
776CELLPADDING="6"
777><TR
778><TD
779><PRE
780CLASS="PROGRAMLISTING"
781>void (*xmlInputCloseCallback) (void *context);</PRE
782></TD
783></TR
784></TABLE
785><P
786></P
787><DIV
788CLASS="INFORMALTABLE"
789><P
790></P
791><TABLE
792BORDER="0"
793WIDTH="100%"
794BGCOLOR="#FFD0D0"
795CELLSPACING="0"
796CELLPADDING="4"
797CLASS="CALSTABLE"
798><TR
799><TD
800WIDTH="20%"
801ALIGN="RIGHT"
802VALIGN="TOP"
803><TT
804CLASS="PARAMETER"
805><I
806>context</I
807></TT
808>&nbsp;:</TD
809><TD
810WIDTH="80%"
811ALIGN="LEFT"
812VALIGN="TOP"
813>&nbsp;</TD
814></TR
815></TABLE
816><P
817></P
818></DIV
819></DIV
820><HR><DIV
821CLASS="REFSECT2"
822><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000823NAME="AEN14125"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000824></A
825><H3
826><A
827NAME="XMLPARSERINPUTBUFFER"
828></A
829>struct xmlParserInputBuffer</H3
830><TABLE
831BORDER="0"
832BGCOLOR="#D6E8FF"
833WIDTH="100%"
834CELLPADDING="6"
835><TR
836><TD
837><PRE
838CLASS="PROGRAMLISTING"
839>struct xmlParserInputBuffer {
840 void* context;
841 xmlInputReadCallback readcallback;
842 xmlInputCloseCallback closecallback;
843
844 xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
845
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000846 xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000847 xmlBufferPtr raw; /* if encoder != NULL buffer for raw input */
848};</PRE
849></TD
850></TR
851></TABLE
852><P
853></P
854></DIV
855><HR><DIV
856CLASS="REFSECT2"
857><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000858NAME="AEN14130"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000859></A
860><H3
861><A
862NAME="XMLPARSERINPUTBUFFERPTR"
863></A
864>xmlParserInputBufferPtr</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000865><TABLE
866BORDER="0"
867BGCOLOR="#D6E8FF"
868WIDTH="100%"
869CELLPADDING="6"
870><TR
871><TD
872><PRE
873CLASS="PROGRAMLISTING"
874>typedef xmlParserInputBuffer *xmlParserInputBufferPtr;</PRE
875></TD
876></TR
877></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000878><P
879></P
880></DIV
881><HR><DIV
882CLASS="REFSECT2"
883><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000884NAME="AEN14135"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000885></A
886><H3
887><A
888NAME="XMLOUTPUTMATCHCALLBACK"
889></A
890>xmlOutputMatchCallback ()</H3
891><TABLE
892BORDER="0"
893BGCOLOR="#D6E8FF"
894WIDTH="100%"
895CELLPADDING="6"
896><TR
897><TD
898><PRE
899CLASS="PROGRAMLISTING"
900>int (*xmlOutputMatchCallback) (char const *filename);</PRE
901></TD
902></TR
903></TABLE
904><P
905></P
906><DIV
907CLASS="INFORMALTABLE"
908><P
909></P
910><TABLE
911BORDER="0"
912WIDTH="100%"
913BGCOLOR="#FFD0D0"
914CELLSPACING="0"
915CELLPADDING="4"
916CLASS="CALSTABLE"
917><TR
918><TD
919WIDTH="20%"
920ALIGN="RIGHT"
921VALIGN="TOP"
922><TT
923CLASS="PARAMETER"
924><I
925>filename</I
926></TT
927>&nbsp;:</TD
928><TD
929WIDTH="80%"
930ALIGN="LEFT"
931VALIGN="TOP"
932>&nbsp;</TD
933></TR
934><TR
935><TD
936WIDTH="20%"
937ALIGN="RIGHT"
938VALIGN="TOP"
939><I
940CLASS="EMPHASIS"
941>Returns</I
942> :</TD
943><TD
944WIDTH="80%"
945ALIGN="LEFT"
946VALIGN="TOP"
947>&nbsp;</TD
948></TR
949></TABLE
950><P
951></P
952></DIV
953></DIV
954><HR><DIV
955CLASS="REFSECT2"
956><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000957NAME="AEN14153"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000958></A
959><H3
960><A
961NAME="XMLOUTPUTOPENCALLBACK"
962></A
963>xmlOutputOpenCallback ()</H3
964><TABLE
965BORDER="0"
966BGCOLOR="#D6E8FF"
967WIDTH="100%"
968CELLPADDING="6"
969><TR
970><TD
971><PRE
972CLASS="PROGRAMLISTING"
973>void* (*xmlOutputOpenCallback) (char const *filename);</PRE
974></TD
975></TR
976></TABLE
977><P
978></P
979><DIV
980CLASS="INFORMALTABLE"
981><P
982></P
983><TABLE
984BORDER="0"
985WIDTH="100%"
986BGCOLOR="#FFD0D0"
987CELLSPACING="0"
988CELLPADDING="4"
989CLASS="CALSTABLE"
990><TR
991><TD
992WIDTH="20%"
993ALIGN="RIGHT"
994VALIGN="TOP"
995><TT
996CLASS="PARAMETER"
997><I
998>filename</I
999></TT
1000>&nbsp;:</TD
1001><TD
1002WIDTH="80%"
1003ALIGN="LEFT"
1004VALIGN="TOP"
1005>&nbsp;</TD
1006></TR
1007></TABLE
1008><P
1009></P
1010></DIV
1011></DIV
1012><HR><DIV
1013CLASS="REFSECT2"
1014><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001015NAME="AEN14167"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001016></A
1017><H3
1018><A
1019NAME="XMLOUTPUTWRITECALLBACK"
1020></A
1021>xmlOutputWriteCallback ()</H3
1022><TABLE
1023BORDER="0"
1024BGCOLOR="#D6E8FF"
1025WIDTH="100%"
1026CELLPADDING="6"
1027><TR
1028><TD
1029><PRE
1030CLASS="PROGRAMLISTING"
1031>int (*xmlOutputWriteCallback) (void *context,
1032 const char *buffer,
1033 int len);</PRE
1034></TD
1035></TR
1036></TABLE
1037><P
1038></P
1039><DIV
1040CLASS="INFORMALTABLE"
1041><P
1042></P
1043><TABLE
1044BORDER="0"
1045WIDTH="100%"
1046BGCOLOR="#FFD0D0"
1047CELLSPACING="0"
1048CELLPADDING="4"
1049CLASS="CALSTABLE"
1050><TR
1051><TD
1052WIDTH="20%"
1053ALIGN="RIGHT"
1054VALIGN="TOP"
1055><TT
1056CLASS="PARAMETER"
1057><I
1058>context</I
1059></TT
1060>&nbsp;:</TD
1061><TD
1062WIDTH="80%"
1063ALIGN="LEFT"
1064VALIGN="TOP"
1065>&nbsp;</TD
1066></TR
1067><TR
1068><TD
1069WIDTH="20%"
1070ALIGN="RIGHT"
1071VALIGN="TOP"
1072><TT
1073CLASS="PARAMETER"
1074><I
1075>buffer</I
1076></TT
1077>&nbsp;:</TD
1078><TD
1079WIDTH="80%"
1080ALIGN="LEFT"
1081VALIGN="TOP"
1082>&nbsp;</TD
1083></TR
1084><TR
1085><TD
1086WIDTH="20%"
1087ALIGN="RIGHT"
1088VALIGN="TOP"
1089><TT
1090CLASS="PARAMETER"
1091><I
1092>len</I
1093></TT
1094>&nbsp;:</TD
1095><TD
1096WIDTH="80%"
1097ALIGN="LEFT"
1098VALIGN="TOP"
1099>&nbsp;</TD
1100></TR
1101><TR
1102><TD
1103WIDTH="20%"
1104ALIGN="RIGHT"
1105VALIGN="TOP"
1106><I
1107CLASS="EMPHASIS"
1108>Returns</I
1109> :</TD
1110><TD
1111WIDTH="80%"
1112ALIGN="LEFT"
1113VALIGN="TOP"
1114>&nbsp;</TD
1115></TR
1116></TABLE
1117><P
1118></P
1119></DIV
1120></DIV
1121><HR><DIV
1122CLASS="REFSECT2"
1123><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001124NAME="AEN14193"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001125></A
1126><H3
1127><A
1128NAME="XMLOUTPUTCLOSECALLBACK"
1129></A
1130>xmlOutputCloseCallback ()</H3
1131><TABLE
1132BORDER="0"
1133BGCOLOR="#D6E8FF"
1134WIDTH="100%"
1135CELLPADDING="6"
1136><TR
1137><TD
1138><PRE
1139CLASS="PROGRAMLISTING"
1140>void (*xmlOutputCloseCallback) (void *context);</PRE
1141></TD
1142></TR
1143></TABLE
1144><P
1145></P
1146><DIV
1147CLASS="INFORMALTABLE"
1148><P
1149></P
1150><TABLE
1151BORDER="0"
1152WIDTH="100%"
1153BGCOLOR="#FFD0D0"
1154CELLSPACING="0"
1155CELLPADDING="4"
1156CLASS="CALSTABLE"
1157><TR
1158><TD
1159WIDTH="20%"
1160ALIGN="RIGHT"
1161VALIGN="TOP"
1162><TT
1163CLASS="PARAMETER"
1164><I
1165>context</I
1166></TT
1167>&nbsp;:</TD
1168><TD
1169WIDTH="80%"
1170ALIGN="LEFT"
1171VALIGN="TOP"
1172>&nbsp;</TD
1173></TR
1174></TABLE
1175><P
1176></P
1177></DIV
1178></DIV
1179><HR><DIV
1180CLASS="REFSECT2"
1181><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001182NAME="AEN14207"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001183></A
1184><H3
1185><A
1186NAME="XMLOUTPUTBUFFER"
1187></A
1188>struct xmlOutputBuffer</H3
1189><TABLE
1190BORDER="0"
1191BGCOLOR="#D6E8FF"
1192WIDTH="100%"
1193CELLPADDING="6"
1194><TR
1195><TD
1196><PRE
1197CLASS="PROGRAMLISTING"
1198>struct xmlOutputBuffer {
1199 void* context;
1200 xmlOutputWriteCallback writecallback;
1201 xmlOutputCloseCallback closecallback;
1202
1203 xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
1204
1205 xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */
1206 xmlBufferPtr conv; /* if encoder != NULL buffer for output */
1207 int written; /* total number of byte written */
1208};</PRE
1209></TD
1210></TR
1211></TABLE
1212><P
1213></P
1214></DIV
1215><HR><DIV
1216CLASS="REFSECT2"
1217><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001218NAME="AEN14212"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001219></A
1220><H3
1221><A
1222NAME="XMLOUTPUTBUFFERPTR"
1223></A
1224>xmlOutputBufferPtr</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001225><TABLE
1226BORDER="0"
1227BGCOLOR="#D6E8FF"
1228WIDTH="100%"
1229CELLPADDING="6"
1230><TR
1231><TD
1232><PRE
1233CLASS="PROGRAMLISTING"
1234>typedef xmlOutputBuffer *xmlOutputBufferPtr;</PRE
1235></TD
1236></TR
1237></TABLE
Daniel Veillard7e99c632000-10-06 12:59:53 +00001238><P
1239></P
1240></DIV
1241><HR><DIV
1242CLASS="REFSECT2"
1243><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001244NAME="AEN14217"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001245></A
1246><H3
1247><A
1248NAME="XMLREGISTERDEFAULTINPUTCALLBACKS"
1249></A
1250>xmlRegisterDefaultInputCallbacks ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001251><TABLE
1252BORDER="0"
1253BGCOLOR="#D6E8FF"
1254WIDTH="100%"
1255CELLPADDING="6"
1256><TR
1257><TD
1258><PRE
1259CLASS="PROGRAMLISTING"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001260>void xmlRegisterDefaultInputCallbacks
1261 (void);</PRE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001262></TD
1263></TR
1264></TABLE
1265><P
Daniel Veillard7e99c632000-10-06 12:59:53 +00001266>Registers the default compiled-in I/O handlers.</P
1267><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001268></P
1269></DIV
1270><HR><DIV
1271CLASS="REFSECT2"
1272><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001273NAME="AEN14223"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001274></A
1275><H3
1276><A
1277NAME="XMLALLOCPARSERINPUTBUFFER"
1278></A
1279>xmlAllocParserInputBuffer ()</H3
1280><TABLE
1281BORDER="0"
1282BGCOLOR="#D6E8FF"
1283WIDTH="100%"
1284CELLPADDING="6"
1285><TR
1286><TD
1287><PRE
1288CLASS="PROGRAMLISTING"
1289><A
1290HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1291>xmlParserInputBufferPtr</A
1292> xmlAllocParserInputBuffer
1293 (<A
1294HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1295>xmlCharEncoding</A
1296> enc);</PRE
1297></TD
1298></TR
1299></TABLE
1300><P
1301>Create a buffered parser input for progressive parsing</P
1302><P
1303></P
1304><DIV
1305CLASS="INFORMALTABLE"
1306><P
1307></P
1308><TABLE
1309BORDER="0"
1310WIDTH="100%"
1311BGCOLOR="#FFD0D0"
1312CELLSPACING="0"
1313CELLPADDING="4"
1314CLASS="CALSTABLE"
1315><TR
1316><TD
1317WIDTH="20%"
1318ALIGN="RIGHT"
1319VALIGN="TOP"
1320><TT
1321CLASS="PARAMETER"
1322><I
1323>enc</I
1324></TT
1325>&nbsp;:</TD
1326><TD
1327WIDTH="80%"
1328ALIGN="LEFT"
1329VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001330> the charset encoding if known</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001331></TR
1332><TR
1333><TD
1334WIDTH="20%"
1335ALIGN="RIGHT"
1336VALIGN="TOP"
1337><I
1338CLASS="EMPHASIS"
1339>Returns</I
1340> :</TD
1341><TD
1342WIDTH="80%"
1343ALIGN="LEFT"
1344VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001345>the new parser input or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001346></TR
1347></TABLE
1348><P
1349></P
1350></DIV
1351></DIV
1352><HR><DIV
1353CLASS="REFSECT2"
1354><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001355NAME="AEN14244"
1356></A
1357><H3
1358><A
1359NAME="XMLPARSERINPUTBUFFERCREATEFNAME"
1360></A
1361>xmlParserInputBufferCreateFname ()</H3
1362><TABLE
1363BORDER="0"
1364BGCOLOR="#D6E8FF"
1365WIDTH="100%"
1366CELLPADDING="6"
1367><TR
1368><TD
1369><PRE
1370CLASS="PROGRAMLISTING"
1371><A
1372HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1373>xmlParserInputBufferPtr</A
1374> xmlParserInputBufferCreateFname
1375 (const char *URI,
1376 <A
1377HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1378>xmlCharEncoding</A
1379> enc);</PRE
1380></TD
1381></TR
1382></TABLE
1383><P
1384></P
1385><DIV
1386CLASS="INFORMALTABLE"
1387><P
1388></P
1389><TABLE
1390BORDER="0"
1391WIDTH="100%"
1392BGCOLOR="#FFD0D0"
1393CELLSPACING="0"
1394CELLPADDING="4"
1395CLASS="CALSTABLE"
1396><TR
1397><TD
1398WIDTH="20%"
1399ALIGN="RIGHT"
1400VALIGN="TOP"
1401><TT
1402CLASS="PARAMETER"
1403><I
1404>URI</I
1405></TT
1406>&nbsp;:</TD
1407><TD
1408WIDTH="80%"
1409ALIGN="LEFT"
1410VALIGN="TOP"
1411>&nbsp;</TD
1412></TR
1413><TR
1414><TD
1415WIDTH="20%"
1416ALIGN="RIGHT"
1417VALIGN="TOP"
1418><TT
1419CLASS="PARAMETER"
1420><I
1421>enc</I
1422></TT
1423>&nbsp;:</TD
1424><TD
1425WIDTH="80%"
1426ALIGN="LEFT"
1427VALIGN="TOP"
1428>&nbsp;</TD
1429></TR
1430><TR
1431><TD
1432WIDTH="20%"
1433ALIGN="RIGHT"
1434VALIGN="TOP"
1435><I
1436CLASS="EMPHASIS"
1437>Returns</I
1438> :</TD
1439><TD
1440WIDTH="80%"
1441ALIGN="LEFT"
1442VALIGN="TOP"
1443>&nbsp;</TD
1444></TR
1445></TABLE
1446><P
1447></P
1448></DIV
1449></DIV
1450><HR><DIV
1451CLASS="REFSECT2"
1452><A
1453NAME="AEN14268"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001454></A
1455><H3
1456><A
1457NAME="XMLPARSERINPUTBUFFERCREATEFILENAME"
1458></A
1459>xmlParserInputBufferCreateFilename ()</H3
1460><TABLE
1461BORDER="0"
1462BGCOLOR="#D6E8FF"
1463WIDTH="100%"
1464CELLPADDING="6"
1465><TR
1466><TD
1467><PRE
1468CLASS="PROGRAMLISTING"
1469><A
1470HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1471>xmlParserInputBufferPtr</A
1472> xmlParserInputBufferCreateFilename
1473 (const char *URI,
1474 <A
1475HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1476>xmlCharEncoding</A
1477> enc);</PRE
1478></TD
1479></TR
1480></TABLE
1481><P
1482>Create a buffered parser input for the progressive parsing of a file
1483If filename is "-' then we use stdin as the input.
1484Automatic support for ZLIB/Compress compressed document is provided
1485by default if found at compile-time.
1486Do an encoding check if enc == XML_CHAR_ENCODING_NONE</P
1487><P
1488></P
1489><DIV
1490CLASS="INFORMALTABLE"
1491><P
1492></P
1493><TABLE
1494BORDER="0"
1495WIDTH="100%"
1496BGCOLOR="#FFD0D0"
1497CELLSPACING="0"
1498CELLPADDING="4"
1499CLASS="CALSTABLE"
1500><TR
1501><TD
1502WIDTH="20%"
1503ALIGN="RIGHT"
1504VALIGN="TOP"
1505><TT
1506CLASS="PARAMETER"
1507><I
1508>URI</I
1509></TT
1510>&nbsp;:</TD
1511><TD
1512WIDTH="80%"
1513ALIGN="LEFT"
1514VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001515> a C string containing the URI or filename</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001516></TR
1517><TR
1518><TD
1519WIDTH="20%"
1520ALIGN="RIGHT"
1521VALIGN="TOP"
1522><TT
1523CLASS="PARAMETER"
1524><I
1525>enc</I
1526></TT
1527>&nbsp;:</TD
1528><TD
1529WIDTH="80%"
1530ALIGN="LEFT"
1531VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001532> the charset encoding if known</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001533></TR
1534><TR
1535><TD
1536WIDTH="20%"
1537ALIGN="RIGHT"
1538VALIGN="TOP"
1539><I
1540CLASS="EMPHASIS"
1541>Returns</I
1542> :</TD
1543><TD
1544WIDTH="80%"
1545ALIGN="LEFT"
1546VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001547>the new parser input or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001548></TR
1549></TABLE
1550><P
1551></P
1552></DIV
1553></DIV
1554><HR><DIV
1555CLASS="REFSECT2"
1556><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001557NAME="AEN14293"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001558></A
1559><H3
1560><A
1561NAME="XMLPARSERINPUTBUFFERCREATEFILE"
1562></A
1563>xmlParserInputBufferCreateFile ()</H3
1564><TABLE
1565BORDER="0"
1566BGCOLOR="#D6E8FF"
1567WIDTH="100%"
1568CELLPADDING="6"
1569><TR
1570><TD
1571><PRE
1572CLASS="PROGRAMLISTING"
1573><A
1574HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1575>xmlParserInputBufferPtr</A
1576> xmlParserInputBufferCreateFile
1577 (<GTKDOCLINK
1578HREF="FILE"
1579>FILE</GTKDOCLINK
1580> *file,
1581 <A
1582HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1583>xmlCharEncoding</A
1584> enc);</PRE
1585></TD
1586></TR
1587></TABLE
1588><P
1589>Create a buffered parser input for the progressive parsing of a FILE *
1590buffered C I/O</P
1591><P
1592></P
1593><DIV
1594CLASS="INFORMALTABLE"
1595><P
1596></P
1597><TABLE
1598BORDER="0"
1599WIDTH="100%"
1600BGCOLOR="#FFD0D0"
1601CELLSPACING="0"
1602CELLPADDING="4"
1603CLASS="CALSTABLE"
1604><TR
1605><TD
1606WIDTH="20%"
1607ALIGN="RIGHT"
1608VALIGN="TOP"
1609><TT
1610CLASS="PARAMETER"
1611><I
1612>file</I
1613></TT
1614>&nbsp;:</TD
1615><TD
1616WIDTH="80%"
1617ALIGN="LEFT"
1618VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001619> a FILE* </TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001620></TR
1621><TR
1622><TD
1623WIDTH="20%"
1624ALIGN="RIGHT"
1625VALIGN="TOP"
1626><TT
1627CLASS="PARAMETER"
1628><I
1629>enc</I
1630></TT
1631>&nbsp;:</TD
1632><TD
1633WIDTH="80%"
1634ALIGN="LEFT"
1635VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001636> the charset encoding if known</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001637></TR
1638><TR
1639><TD
1640WIDTH="20%"
1641ALIGN="RIGHT"
1642VALIGN="TOP"
1643><I
1644CLASS="EMPHASIS"
1645>Returns</I
1646> :</TD
1647><TD
1648WIDTH="80%"
1649ALIGN="LEFT"
1650VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001651>the new parser input or NULL</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001652></TR
1653></TABLE
1654><P
1655></P
1656></DIV
1657></DIV
1658><HR><DIV
1659CLASS="REFSECT2"
1660><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001661NAME="AEN14319"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001662></A
1663><H3
1664><A
1665NAME="XMLPARSERINPUTBUFFERCREATEFD"
1666></A
1667>xmlParserInputBufferCreateFd ()</H3
1668><TABLE
1669BORDER="0"
1670BGCOLOR="#D6E8FF"
1671WIDTH="100%"
1672CELLPADDING="6"
1673><TR
1674><TD
1675><PRE
1676CLASS="PROGRAMLISTING"
1677><A
1678HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1679>xmlParserInputBufferPtr</A
1680> xmlParserInputBufferCreateFd
1681 (int fd,
1682 <A
1683HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1684>xmlCharEncoding</A
1685> enc);</PRE
1686></TD
1687></TR
1688></TABLE
1689><P
1690>Create a buffered parser input for the progressive parsing for the input
1691from a file descriptor</P
1692><P
1693></P
1694><DIV
1695CLASS="INFORMALTABLE"
1696><P
1697></P
1698><TABLE
1699BORDER="0"
1700WIDTH="100%"
1701BGCOLOR="#FFD0D0"
1702CELLSPACING="0"
1703CELLPADDING="4"
1704CLASS="CALSTABLE"
1705><TR
1706><TD
1707WIDTH="20%"
1708ALIGN="RIGHT"
1709VALIGN="TOP"
1710><TT
1711CLASS="PARAMETER"
1712><I
1713>fd</I
1714></TT
1715>&nbsp;:</TD
1716><TD
1717WIDTH="80%"
1718ALIGN="LEFT"
1719VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001720> a file descriptor number</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001721></TR
1722><TR
1723><TD
1724WIDTH="20%"
1725ALIGN="RIGHT"
1726VALIGN="TOP"
1727><TT
1728CLASS="PARAMETER"
1729><I
1730>enc</I
1731></TT
1732>&nbsp;:</TD
1733><TD
1734WIDTH="80%"
1735ALIGN="LEFT"
1736VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001737> the charset encoding if known</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001738></TR
1739><TR
1740><TD
1741WIDTH="20%"
1742ALIGN="RIGHT"
1743VALIGN="TOP"
1744><I
1745CLASS="EMPHASIS"
1746>Returns</I
1747> :</TD
1748><TD
1749WIDTH="80%"
1750ALIGN="LEFT"
1751VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001752>the new parser input or NULL</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001753></TR
1754></TABLE
1755><P
1756></P
1757></DIV
1758></DIV
1759><HR><DIV
1760CLASS="REFSECT2"
1761><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001762NAME="AEN14344"
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001763></A
1764><H3
1765><A
1766NAME="XMLPARSERINPUTBUFFERCREATEMEM"
1767></A
1768>xmlParserInputBufferCreateMem ()</H3
1769><TABLE
1770BORDER="0"
1771BGCOLOR="#D6E8FF"
1772WIDTH="100%"
1773CELLPADDING="6"
1774><TR
1775><TD
1776><PRE
1777CLASS="PROGRAMLISTING"
1778><A
1779HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1780>xmlParserInputBufferPtr</A
1781> xmlParserInputBufferCreateMem
1782 (const char *mem,
1783 int size,
1784 <A
1785HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1786>xmlCharEncoding</A
1787> enc);</PRE
1788></TD
1789></TR
1790></TABLE
1791><P
1792>Create a buffered parser input for the progressive parsing for the input
1793from a file descriptor</P
1794><P
1795></P
1796><DIV
1797CLASS="INFORMALTABLE"
1798><P
1799></P
1800><TABLE
1801BORDER="0"
1802WIDTH="100%"
1803BGCOLOR="#FFD0D0"
1804CELLSPACING="0"
1805CELLPADDING="4"
1806CLASS="CALSTABLE"
1807><TR
1808><TD
1809WIDTH="20%"
1810ALIGN="RIGHT"
1811VALIGN="TOP"
1812><TT
1813CLASS="PARAMETER"
1814><I
1815>mem</I
1816></TT
1817>&nbsp;:</TD
1818><TD
1819WIDTH="80%"
1820ALIGN="LEFT"
1821VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001822> the memory input</TD
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001823></TR
1824><TR
1825><TD
1826WIDTH="20%"
1827ALIGN="RIGHT"
1828VALIGN="TOP"
1829><TT
1830CLASS="PARAMETER"
1831><I
1832>size</I
1833></TT
1834>&nbsp;:</TD
1835><TD
1836WIDTH="80%"
1837ALIGN="LEFT"
1838VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001839> the length of the memory block</TD
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001840></TR
1841><TR
1842><TD
1843WIDTH="20%"
1844ALIGN="RIGHT"
1845VALIGN="TOP"
1846><TT
1847CLASS="PARAMETER"
1848><I
1849>enc</I
1850></TT
1851>&nbsp;:</TD
1852><TD
1853WIDTH="80%"
1854ALIGN="LEFT"
1855VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001856> the charset encoding if known</TD
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001857></TR
1858><TR
1859><TD
1860WIDTH="20%"
1861ALIGN="RIGHT"
1862VALIGN="TOP"
1863><I
1864CLASS="EMPHASIS"
1865>Returns</I
1866> :</TD
1867><TD
1868WIDTH="80%"
1869ALIGN="LEFT"
1870VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001871>the new parser input or NULL</TD
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001872></TR
1873></TABLE
1874><P
1875></P
1876></DIV
1877></DIV
1878><HR><DIV
1879CLASS="REFSECT2"
1880><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001881NAME="AEN14373"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001882></A
1883><H3
1884><A
1885NAME="XMLPARSERINPUTBUFFERCREATEIO"
1886></A
1887>xmlParserInputBufferCreateIO ()</H3
1888><TABLE
1889BORDER="0"
1890BGCOLOR="#D6E8FF"
1891WIDTH="100%"
1892CELLPADDING="6"
1893><TR
1894><TD
1895><PRE
1896CLASS="PROGRAMLISTING"
1897><A
1898HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1899>xmlParserInputBufferPtr</A
1900> xmlParserInputBufferCreateIO
1901 (<A
1902HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK"
1903>xmlInputReadCallback</A
1904> ioread,
1905 <A
1906HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK"
1907>xmlInputCloseCallback</A
1908> ioclose,
1909 void *ioctx,
1910 <A
1911HREF="gnome-xml-encoding.html#XMLCHARENCODING"
1912>xmlCharEncoding</A
1913> enc);</PRE
1914></TD
1915></TR
1916></TABLE
1917><P
1918>Create a buffered parser input for the progressive parsing for the input
1919from an I/O handler</P
1920><P
1921></P
1922><DIV
1923CLASS="INFORMALTABLE"
1924><P
1925></P
1926><TABLE
1927BORDER="0"
1928WIDTH="100%"
1929BGCOLOR="#FFD0D0"
1930CELLSPACING="0"
1931CELLPADDING="4"
1932CLASS="CALSTABLE"
1933><TR
1934><TD
1935WIDTH="20%"
1936ALIGN="RIGHT"
1937VALIGN="TOP"
1938><TT
1939CLASS="PARAMETER"
1940><I
1941>ioread</I
1942></TT
1943>&nbsp;:</TD
1944><TD
1945WIDTH="80%"
1946ALIGN="LEFT"
1947VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001948> an I/O read function</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001949></TR
1950><TR
1951><TD
1952WIDTH="20%"
1953ALIGN="RIGHT"
1954VALIGN="TOP"
1955><TT
1956CLASS="PARAMETER"
1957><I
1958>ioclose</I
1959></TT
1960>&nbsp;:</TD
1961><TD
1962WIDTH="80%"
1963ALIGN="LEFT"
1964VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001965> an I/O close function</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001966></TR
1967><TR
1968><TD
1969WIDTH="20%"
1970ALIGN="RIGHT"
1971VALIGN="TOP"
1972><TT
1973CLASS="PARAMETER"
1974><I
1975>ioctx</I
1976></TT
1977>&nbsp;:</TD
1978><TD
1979WIDTH="80%"
1980ALIGN="LEFT"
1981VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001982> an I/O handler</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001983></TR
1984><TR
1985><TD
1986WIDTH="20%"
1987ALIGN="RIGHT"
1988VALIGN="TOP"
1989><TT
1990CLASS="PARAMETER"
1991><I
1992>enc</I
1993></TT
1994>&nbsp;:</TD
1995><TD
1996WIDTH="80%"
1997ALIGN="LEFT"
1998VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001999> the charset encoding if known</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002000></TR
2001><TR
2002><TD
2003WIDTH="20%"
2004ALIGN="RIGHT"
2005VALIGN="TOP"
2006><I
2007CLASS="EMPHASIS"
2008>Returns</I
2009> :</TD
2010><TD
2011WIDTH="80%"
2012ALIGN="LEFT"
2013VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002014>the new parser input or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002015></TR
2016></TABLE
2017><P
2018></P
2019></DIV
2020></DIV
2021><HR><DIV
2022CLASS="REFSECT2"
2023><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002024NAME="AEN14408"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002025></A
2026><H3
2027><A
2028NAME="XMLPARSERINPUTBUFFERREAD"
2029></A
2030>xmlParserInputBufferRead ()</H3
2031><TABLE
2032BORDER="0"
2033BGCOLOR="#D6E8FF"
2034WIDTH="100%"
2035CELLPADDING="6"
2036><TR
2037><TD
2038><PRE
2039CLASS="PROGRAMLISTING"
2040>int xmlParserInputBufferRead (<A
2041HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
2042>xmlParserInputBufferPtr</A
2043> in,
2044 int len);</PRE
2045></TD
2046></TR
2047></TABLE
2048><P
2049>Refresh the content of the input buffer, the old data are considered
2050consumed
2051This routine handle the I18N transcoding to internal UTF-8</P
2052><P
2053></P
2054><DIV
2055CLASS="INFORMALTABLE"
2056><P
2057></P
2058><TABLE
2059BORDER="0"
2060WIDTH="100%"
2061BGCOLOR="#FFD0D0"
2062CELLSPACING="0"
2063CELLPADDING="4"
2064CLASS="CALSTABLE"
2065><TR
2066><TD
2067WIDTH="20%"
2068ALIGN="RIGHT"
2069VALIGN="TOP"
2070><TT
2071CLASS="PARAMETER"
2072><I
2073>in</I
2074></TT
2075>&nbsp;:</TD
2076><TD
2077WIDTH="80%"
2078ALIGN="LEFT"
2079VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002080> a buffered parser input</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002081></TR
2082><TR
2083><TD
2084WIDTH="20%"
2085ALIGN="RIGHT"
2086VALIGN="TOP"
2087><TT
2088CLASS="PARAMETER"
2089><I
2090>len</I
2091></TT
2092>&nbsp;:</TD
2093><TD
2094WIDTH="80%"
2095ALIGN="LEFT"
2096VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002097> indicative value of the amount of chars to read</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002098></TR
2099><TR
2100><TD
2101WIDTH="20%"
2102ALIGN="RIGHT"
2103VALIGN="TOP"
2104><I
2105CLASS="EMPHASIS"
2106>Returns</I
2107> :</TD
2108><TD
2109WIDTH="80%"
2110ALIGN="LEFT"
2111VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002112>the number of chars read and stored in the buffer, or -1
2113in case of error.</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002114></TR
2115></TABLE
2116><P
2117></P
2118></DIV
2119></DIV
2120><HR><DIV
2121CLASS="REFSECT2"
2122><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002123NAME="AEN14432"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002124></A
2125><H3
2126><A
2127NAME="XMLPARSERINPUTBUFFERGROW"
2128></A
2129>xmlParserInputBufferGrow ()</H3
2130><TABLE
2131BORDER="0"
2132BGCOLOR="#D6E8FF"
2133WIDTH="100%"
2134CELLPADDING="6"
2135><TR
2136><TD
2137><PRE
2138CLASS="PROGRAMLISTING"
2139>int xmlParserInputBufferGrow (<A
2140HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
2141>xmlParserInputBufferPtr</A
2142> in,
2143 int len);</PRE
2144></TD
2145></TR
2146></TABLE
2147><P
2148>Grow up the content of the input buffer, the old data are preserved
2149This routine handle the I18N transcoding to internal UTF-8
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002150This routine is used when operating the parser in normal (pull) mode</P
2151><P
2152>TODO: one should be able to remove one extra copy by copying directy
2153onto in-&gt;buffer or in-&gt;raw</P
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002154><P
2155></P
2156><DIV
2157CLASS="INFORMALTABLE"
2158><P
2159></P
2160><TABLE
2161BORDER="0"
2162WIDTH="100%"
2163BGCOLOR="#FFD0D0"
2164CELLSPACING="0"
2165CELLPADDING="4"
2166CLASS="CALSTABLE"
2167><TR
2168><TD
2169WIDTH="20%"
2170ALIGN="RIGHT"
2171VALIGN="TOP"
2172><TT
2173CLASS="PARAMETER"
2174><I
2175>in</I
2176></TT
2177>&nbsp;:</TD
2178><TD
2179WIDTH="80%"
2180ALIGN="LEFT"
2181VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002182> a buffered parser input</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002183></TR
2184><TR
2185><TD
2186WIDTH="20%"
2187ALIGN="RIGHT"
2188VALIGN="TOP"
2189><TT
2190CLASS="PARAMETER"
2191><I
2192>len</I
2193></TT
2194>&nbsp;:</TD
2195><TD
2196WIDTH="80%"
2197ALIGN="LEFT"
2198VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002199> indicative value of the amount of chars to read</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002200></TR
2201><TR
2202><TD
2203WIDTH="20%"
2204ALIGN="RIGHT"
2205VALIGN="TOP"
2206><I
2207CLASS="EMPHASIS"
2208>Returns</I
2209> :</TD
2210><TD
2211WIDTH="80%"
2212ALIGN="LEFT"
2213VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002214>the number of chars read and stored in the buffer, or -1
2215in case of error.</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002216></TR
2217></TABLE
2218><P
2219></P
2220></DIV
2221></DIV
2222><HR><DIV
2223CLASS="REFSECT2"
2224><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002225NAME="AEN14457"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002226></A
2227><H3
2228><A
2229NAME="XMLPARSERINPUTBUFFERPUSH"
2230></A
2231>xmlParserInputBufferPush ()</H3
2232><TABLE
2233BORDER="0"
2234BGCOLOR="#D6E8FF"
2235WIDTH="100%"
2236CELLPADDING="6"
2237><TR
2238><TD
2239><PRE
2240CLASS="PROGRAMLISTING"
2241>int xmlParserInputBufferPush (<A
2242HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
2243>xmlParserInputBufferPtr</A
2244> in,
2245 int len,
2246 const char *buf);</PRE
2247></TD
2248></TR
2249></TABLE
2250><P
2251>Push the content of the arry in the input buffer
2252This routine handle the I18N transcoding to internal UTF-8
2253This is used when operating the parser in progressive (push) mode.</P
2254><P
2255></P
2256><DIV
2257CLASS="INFORMALTABLE"
2258><P
2259></P
2260><TABLE
2261BORDER="0"
2262WIDTH="100%"
2263BGCOLOR="#FFD0D0"
2264CELLSPACING="0"
2265CELLPADDING="4"
2266CLASS="CALSTABLE"
2267><TR
2268><TD
2269WIDTH="20%"
2270ALIGN="RIGHT"
2271VALIGN="TOP"
2272><TT
2273CLASS="PARAMETER"
2274><I
2275>in</I
2276></TT
2277>&nbsp;:</TD
2278><TD
2279WIDTH="80%"
2280ALIGN="LEFT"
2281VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002282> a buffered parser input</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002283></TR
2284><TR
2285><TD
2286WIDTH="20%"
2287ALIGN="RIGHT"
2288VALIGN="TOP"
2289><TT
2290CLASS="PARAMETER"
2291><I
2292>len</I
2293></TT
2294>&nbsp;:</TD
2295><TD
2296WIDTH="80%"
2297ALIGN="LEFT"
2298VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002299> the size in bytes of the array.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002300></TR
2301><TR
2302><TD
2303WIDTH="20%"
2304ALIGN="RIGHT"
2305VALIGN="TOP"
2306><TT
2307CLASS="PARAMETER"
2308><I
2309>buf</I
2310></TT
2311>&nbsp;:</TD
2312><TD
2313WIDTH="80%"
2314ALIGN="LEFT"
2315VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002316> an char array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002317></TR
2318><TR
2319><TD
2320WIDTH="20%"
2321ALIGN="RIGHT"
2322VALIGN="TOP"
2323><I
2324CLASS="EMPHASIS"
2325>Returns</I
2326> :</TD
2327><TD
2328WIDTH="80%"
2329ALIGN="LEFT"
2330VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002331>the number of chars read and stored in the buffer, or -1
2332in case of error.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002333></TR
2334></TABLE
2335><P
2336></P
2337></DIV
2338></DIV
2339><HR><DIV
2340CLASS="REFSECT2"
2341><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002342NAME="AEN14485"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002343></A
2344><H3
2345><A
2346NAME="XMLFREEPARSERINPUTBUFFER"
2347></A
2348>xmlFreeParserInputBuffer ()</H3
2349><TABLE
2350BORDER="0"
2351BGCOLOR="#D6E8FF"
2352WIDTH="100%"
2353CELLPADDING="6"
2354><TR
2355><TD
2356><PRE
2357CLASS="PROGRAMLISTING"
2358>void xmlFreeParserInputBuffer (<A
2359HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
2360>xmlParserInputBufferPtr</A
2361> in);</PRE
2362></TD
2363></TR
2364></TABLE
2365><P
2366>Free up the memory used by a buffered parser input</P
2367><P
2368></P
2369><DIV
2370CLASS="INFORMALTABLE"
2371><P
2372></P
2373><TABLE
2374BORDER="0"
2375WIDTH="100%"
2376BGCOLOR="#FFD0D0"
2377CELLSPACING="0"
2378CELLPADDING="4"
2379CLASS="CALSTABLE"
2380><TR
2381><TD
2382WIDTH="20%"
2383ALIGN="RIGHT"
2384VALIGN="TOP"
2385><TT
2386CLASS="PARAMETER"
2387><I
2388>in</I
2389></TT
2390>&nbsp;:</TD
2391><TD
2392WIDTH="80%"
2393ALIGN="LEFT"
2394VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002395> a buffered parser input</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002396></TR
2397></TABLE
2398><P
2399></P
2400></DIV
2401></DIV
2402><HR><DIV
2403CLASS="REFSECT2"
2404><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002405NAME="AEN14501"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002406></A
2407><H3
2408><A
2409NAME="XMLPARSERGETDIRECTORY"
2410></A
2411>xmlParserGetDirectory ()</H3
2412><TABLE
2413BORDER="0"
2414BGCOLOR="#D6E8FF"
2415WIDTH="100%"
2416CELLPADDING="6"
2417><TR
2418><TD
2419><PRE
2420CLASS="PROGRAMLISTING"
2421>char* xmlParserGetDirectory (const char *filename);</PRE
2422></TD
2423></TR
2424></TABLE
2425><P
2426></P
2427><DIV
2428CLASS="INFORMALTABLE"
2429><P
2430></P
2431><TABLE
2432BORDER="0"
2433WIDTH="100%"
2434BGCOLOR="#FFD0D0"
2435CELLSPACING="0"
2436CELLPADDING="4"
2437CLASS="CALSTABLE"
2438><TR
2439><TD
2440WIDTH="20%"
2441ALIGN="RIGHT"
2442VALIGN="TOP"
2443><TT
2444CLASS="PARAMETER"
2445><I
2446>filename</I
2447></TT
2448>&nbsp;:</TD
2449><TD
2450WIDTH="80%"
2451ALIGN="LEFT"
2452VALIGN="TOP"
2453>&nbsp;</TD
2454></TR
2455><TR
2456><TD
2457WIDTH="20%"
2458ALIGN="RIGHT"
2459VALIGN="TOP"
2460><I
2461CLASS="EMPHASIS"
2462>Returns</I
2463> :</TD
2464><TD
2465WIDTH="80%"
2466ALIGN="LEFT"
2467VALIGN="TOP"
2468>&nbsp;</TD
2469></TR
2470></TABLE
2471><P
2472></P
2473></DIV
2474></DIV
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002475><HR><DIV
2476CLASS="REFSECT2"
2477><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002478NAME="AEN14519"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002479></A
2480><H3
2481><A
2482NAME="XMLREGISTERINPUTCALLBACKS"
2483></A
2484>xmlRegisterInputCallbacks ()</H3
2485><TABLE
2486BORDER="0"
2487BGCOLOR="#D6E8FF"
2488WIDTH="100%"
2489CELLPADDING="6"
2490><TR
2491><TD
2492><PRE
2493CLASS="PROGRAMLISTING"
2494>int xmlRegisterInputCallbacks (<A
2495HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK"
2496>xmlInputMatchCallback</A
2497> match,
2498 <A
2499HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK"
2500>xmlInputOpenCallback</A
2501> open,
2502 <A
2503HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK"
2504>xmlInputReadCallback</A
2505> read,
2506 <A
2507HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK"
2508>xmlInputCloseCallback</A
2509> close);</PRE
2510></TD
2511></TR
2512></TABLE
2513><P
2514>Register a new set of I/O callback for handling parser input.</P
2515><P
2516></P
2517><DIV
2518CLASS="INFORMALTABLE"
2519><P
2520></P
2521><TABLE
2522BORDER="0"
2523WIDTH="100%"
2524BGCOLOR="#FFD0D0"
2525CELLSPACING="0"
2526CELLPADDING="4"
2527CLASS="CALSTABLE"
2528><TR
2529><TD
2530WIDTH="20%"
2531ALIGN="RIGHT"
2532VALIGN="TOP"
2533><TT
2534CLASS="PARAMETER"
2535><I
2536>match</I
2537></TT
2538>&nbsp;:</TD
2539><TD
2540WIDTH="80%"
2541ALIGN="LEFT"
2542VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002543> the xmlInputMatchCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002544></TR
2545><TR
2546><TD
2547WIDTH="20%"
2548ALIGN="RIGHT"
2549VALIGN="TOP"
2550><TT
2551CLASS="PARAMETER"
2552><I
2553>open</I
2554></TT
2555>&nbsp;:</TD
2556><TD
2557WIDTH="80%"
2558ALIGN="LEFT"
2559VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002560> the xmlInputOpenCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002561></TR
2562><TR
2563><TD
2564WIDTH="20%"
2565ALIGN="RIGHT"
2566VALIGN="TOP"
2567><TT
2568CLASS="PARAMETER"
2569><I
2570>read</I
2571></TT
2572>&nbsp;:</TD
2573><TD
2574WIDTH="80%"
2575ALIGN="LEFT"
2576VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002577> the xmlInputReadCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002578></TR
2579><TR
2580><TD
2581WIDTH="20%"
2582ALIGN="RIGHT"
2583VALIGN="TOP"
2584><TT
2585CLASS="PARAMETER"
2586><I
2587>close</I
2588></TT
2589>&nbsp;:</TD
2590><TD
2591WIDTH="80%"
2592ALIGN="LEFT"
2593VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002594> the xmlInputCloseCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002595></TR
2596><TR
2597><TD
2598WIDTH="20%"
2599ALIGN="RIGHT"
2600VALIGN="TOP"
2601><I
2602CLASS="EMPHASIS"
2603>Returns</I
2604> :</TD
2605><TD
2606WIDTH="80%"
2607ALIGN="LEFT"
2608VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002609>the registered handler number or -1 in case of error</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002610></TR
2611></TABLE
2612><P
2613></P
2614></DIV
2615></DIV
2616><HR><DIV
2617CLASS="REFSECT2"
2618><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002619NAME="AEN14554"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002620></A
2621><H3
2622><A
2623NAME="XMLREGISTERDEFAULTOUTPUTCALLBACKS"
2624></A
2625>xmlRegisterDefaultOutputCallbacks ()</H3
2626><TABLE
2627BORDER="0"
2628BGCOLOR="#D6E8FF"
2629WIDTH="100%"
2630CELLPADDING="6"
2631><TR
2632><TD
2633><PRE
2634CLASS="PROGRAMLISTING"
2635>void xmlRegisterDefaultOutputCallbacks
2636 (void);</PRE
2637></TD
2638></TR
2639></TABLE
2640><P
2641>Registers the default compiled-in I/O handlers.</P
2642><P
2643></P
2644></DIV
2645><HR><DIV
2646CLASS="REFSECT2"
2647><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002648NAME="AEN14560"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002649></A
2650><H3
2651><A
2652NAME="XMLALLOCOUTPUTBUFFER"
2653></A
2654>xmlAllocOutputBuffer ()</H3
2655><TABLE
2656BORDER="0"
2657BGCOLOR="#D6E8FF"
2658WIDTH="100%"
2659CELLPADDING="6"
2660><TR
2661><TD
2662><PRE
2663CLASS="PROGRAMLISTING"
2664><A
2665HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
2666>xmlOutputBufferPtr</A
2667> xmlAllocOutputBuffer (<A
2668HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
2669>xmlCharEncodingHandlerPtr</A
2670> encoder);</PRE
2671></TD
2672></TR
2673></TABLE
2674><P
2675>Create a buffered parser output</P
2676><P
2677></P
2678><DIV
2679CLASS="INFORMALTABLE"
2680><P
2681></P
2682><TABLE
2683BORDER="0"
2684WIDTH="100%"
2685BGCOLOR="#FFD0D0"
2686CELLSPACING="0"
2687CELLPADDING="4"
2688CLASS="CALSTABLE"
2689><TR
2690><TD
2691WIDTH="20%"
2692ALIGN="RIGHT"
2693VALIGN="TOP"
2694><TT
2695CLASS="PARAMETER"
2696><I
2697>encoder</I
2698></TT
2699>&nbsp;:</TD
2700><TD
2701WIDTH="80%"
2702ALIGN="LEFT"
2703VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002704> the encoding converter or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002705></TR
2706><TR
2707><TD
2708WIDTH="20%"
2709ALIGN="RIGHT"
2710VALIGN="TOP"
2711><I
2712CLASS="EMPHASIS"
2713>Returns</I
2714> :</TD
2715><TD
2716WIDTH="80%"
2717ALIGN="LEFT"
2718VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002719>the new parser output or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002720></TR
2721></TABLE
2722><P
2723></P
2724></DIV
2725></DIV
2726><HR><DIV
2727CLASS="REFSECT2"
2728><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002729NAME="AEN14581"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002730></A
2731><H3
2732><A
2733NAME="XMLOUTPUTBUFFERCREATEFILENAME"
2734></A
2735>xmlOutputBufferCreateFilename ()</H3
2736><TABLE
2737BORDER="0"
2738BGCOLOR="#D6E8FF"
2739WIDTH="100%"
2740CELLPADDING="6"
2741><TR
2742><TD
2743><PRE
2744CLASS="PROGRAMLISTING"
2745><A
2746HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
2747>xmlOutputBufferPtr</A
2748> xmlOutputBufferCreateFilename
2749 (const char *URI,
2750 <A
2751HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
2752>xmlCharEncodingHandlerPtr</A
2753> encoder,
2754 int compression);</PRE
2755></TD
2756></TR
2757></TABLE
2758><P
2759>Create a buffered output for the progressive saving of a file
2760If filename is "-' then we use stdout as the output.
2761Automatic support for ZLIB/Compress compressed document is provided
2762by default if found at compile-time.
2763TODO: currently if compression is set, the library only support
2764writing to a local file.</P
2765><P
2766></P
2767><DIV
2768CLASS="INFORMALTABLE"
2769><P
2770></P
2771><TABLE
2772BORDER="0"
2773WIDTH="100%"
2774BGCOLOR="#FFD0D0"
2775CELLSPACING="0"
2776CELLPADDING="4"
2777CLASS="CALSTABLE"
2778><TR
2779><TD
2780WIDTH="20%"
2781ALIGN="RIGHT"
2782VALIGN="TOP"
2783><TT
2784CLASS="PARAMETER"
2785><I
2786>URI</I
2787></TT
2788>&nbsp;:</TD
2789><TD
2790WIDTH="80%"
2791ALIGN="LEFT"
2792VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002793> a C string containing the URI or filename</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002794></TR
2795><TR
2796><TD
2797WIDTH="20%"
2798ALIGN="RIGHT"
2799VALIGN="TOP"
2800><TT
2801CLASS="PARAMETER"
2802><I
2803>encoder</I
2804></TT
2805>&nbsp;:</TD
2806><TD
2807WIDTH="80%"
2808ALIGN="LEFT"
2809VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002810> the encoding converter or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002811></TR
2812><TR
2813><TD
2814WIDTH="20%"
2815ALIGN="RIGHT"
2816VALIGN="TOP"
2817><TT
2818CLASS="PARAMETER"
2819><I
2820>compression</I
2821></TT
2822>&nbsp;:</TD
2823><TD
2824WIDTH="80%"
2825ALIGN="LEFT"
2826VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002827> the compression ration (0 none, 9 max).</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002828></TR
2829><TR
2830><TD
2831WIDTH="20%"
2832ALIGN="RIGHT"
2833VALIGN="TOP"
2834><I
2835CLASS="EMPHASIS"
2836>Returns</I
2837> :</TD
2838><TD
2839WIDTH="80%"
2840ALIGN="LEFT"
2841VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002842>the new output or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002843></TR
2844></TABLE
2845><P
2846></P
2847></DIV
2848></DIV
2849><HR><DIV
2850CLASS="REFSECT2"
2851><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002852NAME="AEN14610"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002853></A
2854><H3
2855><A
2856NAME="XMLOUTPUTBUFFERCREATEFILE"
2857></A
2858>xmlOutputBufferCreateFile ()</H3
2859><TABLE
2860BORDER="0"
2861BGCOLOR="#D6E8FF"
2862WIDTH="100%"
2863CELLPADDING="6"
2864><TR
2865><TD
2866><PRE
2867CLASS="PROGRAMLISTING"
2868><A
2869HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
2870>xmlOutputBufferPtr</A
2871> xmlOutputBufferCreateFile
2872 (<GTKDOCLINK
2873HREF="FILE"
2874>FILE</GTKDOCLINK
2875> *file,
2876 <A
2877HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
2878>xmlCharEncodingHandlerPtr</A
2879> encoder);</PRE
2880></TD
2881></TR
2882></TABLE
2883><P
2884>Create a buffered output for the progressive saving to a FILE *
2885buffered C I/O</P
2886><P
2887></P
2888><DIV
2889CLASS="INFORMALTABLE"
2890><P
2891></P
2892><TABLE
2893BORDER="0"
2894WIDTH="100%"
2895BGCOLOR="#FFD0D0"
2896CELLSPACING="0"
2897CELLPADDING="4"
2898CLASS="CALSTABLE"
2899><TR
2900><TD
2901WIDTH="20%"
2902ALIGN="RIGHT"
2903VALIGN="TOP"
2904><TT
2905CLASS="PARAMETER"
2906><I
2907>file</I
2908></TT
2909>&nbsp;:</TD
2910><TD
2911WIDTH="80%"
2912ALIGN="LEFT"
2913VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002914> a FILE* </TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002915></TR
2916><TR
2917><TD
2918WIDTH="20%"
2919ALIGN="RIGHT"
2920VALIGN="TOP"
2921><TT
2922CLASS="PARAMETER"
2923><I
2924>encoder</I
2925></TT
2926>&nbsp;:</TD
2927><TD
2928WIDTH="80%"
2929ALIGN="LEFT"
2930VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002931> the encoding converter or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002932></TR
2933><TR
2934><TD
2935WIDTH="20%"
2936ALIGN="RIGHT"
2937VALIGN="TOP"
2938><I
2939CLASS="EMPHASIS"
2940>Returns</I
2941> :</TD
2942><TD
2943WIDTH="80%"
2944ALIGN="LEFT"
2945VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00002946>the new parser output or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002947></TR
2948></TABLE
2949><P
2950></P
2951></DIV
2952></DIV
2953><HR><DIV
2954CLASS="REFSECT2"
2955><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00002956NAME="AEN14636"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002957></A
2958><H3
2959><A
2960NAME="XMLOUTPUTBUFFERCREATEFD"
2961></A
2962>xmlOutputBufferCreateFd ()</H3
2963><TABLE
2964BORDER="0"
2965BGCOLOR="#D6E8FF"
2966WIDTH="100%"
2967CELLPADDING="6"
2968><TR
2969><TD
2970><PRE
2971CLASS="PROGRAMLISTING"
2972><A
2973HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
2974>xmlOutputBufferPtr</A
2975> xmlOutputBufferCreateFd (int fd,
2976 <A
2977HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
2978>xmlCharEncodingHandlerPtr</A
2979> encoder);</PRE
2980></TD
2981></TR
2982></TABLE
2983><P
2984>Create a buffered output for the progressive saving
2985to a file descriptor</P
2986><P
2987></P
2988><DIV
2989CLASS="INFORMALTABLE"
2990><P
2991></P
2992><TABLE
2993BORDER="0"
2994WIDTH="100%"
2995BGCOLOR="#FFD0D0"
2996CELLSPACING="0"
2997CELLPADDING="4"
2998CLASS="CALSTABLE"
2999><TR
3000><TD
3001WIDTH="20%"
3002ALIGN="RIGHT"
3003VALIGN="TOP"
3004><TT
3005CLASS="PARAMETER"
3006><I
3007>fd</I
3008></TT
3009>&nbsp;:</TD
3010><TD
3011WIDTH="80%"
3012ALIGN="LEFT"
3013VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003014> a file descriptor number</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003015></TR
3016><TR
3017><TD
3018WIDTH="20%"
3019ALIGN="RIGHT"
3020VALIGN="TOP"
3021><TT
3022CLASS="PARAMETER"
3023><I
3024>encoder</I
3025></TT
3026>&nbsp;:</TD
3027><TD
3028WIDTH="80%"
3029ALIGN="LEFT"
3030VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003031> the encoding converter or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003032></TR
3033><TR
3034><TD
3035WIDTH="20%"
3036ALIGN="RIGHT"
3037VALIGN="TOP"
3038><I
3039CLASS="EMPHASIS"
3040>Returns</I
3041> :</TD
3042><TD
3043WIDTH="80%"
3044ALIGN="LEFT"
3045VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003046>the new parser output or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003047></TR
3048></TABLE
3049><P
3050></P
3051></DIV
3052></DIV
3053><HR><DIV
3054CLASS="REFSECT2"
3055><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003056NAME="AEN14661"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003057></A
3058><H3
3059><A
3060NAME="XMLOUTPUTBUFFERCREATEIO"
3061></A
3062>xmlOutputBufferCreateIO ()</H3
3063><TABLE
3064BORDER="0"
3065BGCOLOR="#D6E8FF"
3066WIDTH="100%"
3067CELLPADDING="6"
3068><TR
3069><TD
3070><PRE
3071CLASS="PROGRAMLISTING"
3072><A
3073HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3074>xmlOutputBufferPtr</A
3075> xmlOutputBufferCreateIO (<A
3076HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK"
3077>xmlOutputWriteCallback</A
3078> iowrite,
3079 <A
3080HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
3081>xmlOutputCloseCallback</A
3082> ioclose,
3083 void *ioctx,
3084 <A
3085HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR"
3086>xmlCharEncodingHandlerPtr</A
3087> encoder);</PRE
3088></TD
3089></TR
3090></TABLE
3091><P
3092>Create a buffered output for the progressive saving
3093to an I/O handler</P
3094><P
3095></P
3096><DIV
3097CLASS="INFORMALTABLE"
3098><P
3099></P
3100><TABLE
3101BORDER="0"
3102WIDTH="100%"
3103BGCOLOR="#FFD0D0"
3104CELLSPACING="0"
3105CELLPADDING="4"
3106CLASS="CALSTABLE"
3107><TR
3108><TD
3109WIDTH="20%"
3110ALIGN="RIGHT"
3111VALIGN="TOP"
3112><TT
3113CLASS="PARAMETER"
3114><I
3115>iowrite</I
3116></TT
3117>&nbsp;:</TD
3118><TD
3119WIDTH="80%"
3120ALIGN="LEFT"
3121VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003122> an I/O write function</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003123></TR
3124><TR
3125><TD
3126WIDTH="20%"
3127ALIGN="RIGHT"
3128VALIGN="TOP"
3129><TT
3130CLASS="PARAMETER"
3131><I
3132>ioclose</I
3133></TT
3134>&nbsp;:</TD
3135><TD
3136WIDTH="80%"
3137ALIGN="LEFT"
3138VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003139> an I/O close function</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003140></TR
3141><TR
3142><TD
3143WIDTH="20%"
3144ALIGN="RIGHT"
3145VALIGN="TOP"
3146><TT
3147CLASS="PARAMETER"
3148><I
3149>ioctx</I
3150></TT
3151>&nbsp;:</TD
3152><TD
3153WIDTH="80%"
3154ALIGN="LEFT"
3155VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003156> an I/O handler</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003157></TR
3158><TR
3159><TD
3160WIDTH="20%"
3161ALIGN="RIGHT"
3162VALIGN="TOP"
3163><TT
3164CLASS="PARAMETER"
3165><I
3166>encoder</I
3167></TT
3168>&nbsp;:</TD
3169><TD
3170WIDTH="80%"
3171ALIGN="LEFT"
3172VALIGN="TOP"
3173>&nbsp;</TD
3174></TR
3175><TR
3176><TD
3177WIDTH="20%"
3178ALIGN="RIGHT"
3179VALIGN="TOP"
3180><I
3181CLASS="EMPHASIS"
3182>Returns</I
3183> :</TD
3184><TD
3185WIDTH="80%"
3186ALIGN="LEFT"
3187VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003188>the new parser output or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003189></TR
3190></TABLE
3191><P
3192></P
3193></DIV
3194></DIV
3195><HR><DIV
3196CLASS="REFSECT2"
3197><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003198NAME="AEN14696"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003199></A
3200><H3
3201><A
3202NAME="XMLOUTPUTBUFFERWRITE"
3203></A
3204>xmlOutputBufferWrite ()</H3
3205><TABLE
3206BORDER="0"
3207BGCOLOR="#D6E8FF"
3208WIDTH="100%"
3209CELLPADDING="6"
3210><TR
3211><TD
3212><PRE
3213CLASS="PROGRAMLISTING"
3214>int xmlOutputBufferWrite (<A
3215HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3216>xmlOutputBufferPtr</A
3217> out,
3218 int len,
3219 const char *buf);</PRE
3220></TD
3221></TR
3222></TABLE
3223><P
3224>Write the content of the array in the output I/O buffer
3225This routine handle the I18N transcoding from internal UTF-8
3226The buffer is lossless, i.e. will store in case of partial
3227or delayed writes.</P
3228><P
3229></P
3230><DIV
3231CLASS="INFORMALTABLE"
3232><P
3233></P
3234><TABLE
3235BORDER="0"
3236WIDTH="100%"
3237BGCOLOR="#FFD0D0"
3238CELLSPACING="0"
3239CELLPADDING="4"
3240CLASS="CALSTABLE"
3241><TR
3242><TD
3243WIDTH="20%"
3244ALIGN="RIGHT"
3245VALIGN="TOP"
3246><TT
3247CLASS="PARAMETER"
3248><I
3249>out</I
3250></TT
3251>&nbsp;:</TD
3252><TD
3253WIDTH="80%"
3254ALIGN="LEFT"
3255VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003256> a buffered parser output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003257></TR
3258><TR
3259><TD
3260WIDTH="20%"
3261ALIGN="RIGHT"
3262VALIGN="TOP"
3263><TT
3264CLASS="PARAMETER"
3265><I
3266>len</I
3267></TT
3268>&nbsp;:</TD
3269><TD
3270WIDTH="80%"
3271ALIGN="LEFT"
3272VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003273> the size in bytes of the array.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003274></TR
3275><TR
3276><TD
3277WIDTH="20%"
3278ALIGN="RIGHT"
3279VALIGN="TOP"
3280><TT
3281CLASS="PARAMETER"
3282><I
3283>buf</I
3284></TT
3285>&nbsp;:</TD
3286><TD
3287WIDTH="80%"
3288ALIGN="LEFT"
3289VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003290> an char array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003291></TR
3292><TR
3293><TD
3294WIDTH="20%"
3295ALIGN="RIGHT"
3296VALIGN="TOP"
3297><I
3298CLASS="EMPHASIS"
3299>Returns</I
3300> :</TD
3301><TD
3302WIDTH="80%"
3303ALIGN="LEFT"
3304VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003305>the number of chars immediately written, or -1
3306in case of error.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003307></TR
3308></TABLE
3309><P
3310></P
3311></DIV
3312></DIV
3313><HR><DIV
3314CLASS="REFSECT2"
3315><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003316NAME="AEN14724"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003317></A
3318><H3
3319><A
3320NAME="XMLOUTPUTBUFFERWRITESTRING"
3321></A
3322>xmlOutputBufferWriteString ()</H3
3323><TABLE
3324BORDER="0"
3325BGCOLOR="#D6E8FF"
3326WIDTH="100%"
3327CELLPADDING="6"
3328><TR
3329><TD
3330><PRE
3331CLASS="PROGRAMLISTING"
3332>int xmlOutputBufferWriteString (<A
3333HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3334>xmlOutputBufferPtr</A
3335> out,
3336 const char *str);</PRE
3337></TD
3338></TR
3339></TABLE
3340><P
3341>Write the content of the string in the output I/O buffer
3342This routine handle the I18N transcoding from internal UTF-8
3343The buffer is lossless, i.e. will store in case of partial
3344or delayed writes.</P
3345><P
3346></P
3347><DIV
3348CLASS="INFORMALTABLE"
3349><P
3350></P
3351><TABLE
3352BORDER="0"
3353WIDTH="100%"
3354BGCOLOR="#FFD0D0"
3355CELLSPACING="0"
3356CELLPADDING="4"
3357CLASS="CALSTABLE"
3358><TR
3359><TD
3360WIDTH="20%"
3361ALIGN="RIGHT"
3362VALIGN="TOP"
3363><TT
3364CLASS="PARAMETER"
3365><I
3366>out</I
3367></TT
3368>&nbsp;:</TD
3369><TD
3370WIDTH="80%"
3371ALIGN="LEFT"
3372VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003373> a buffered parser output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003374></TR
3375><TR
3376><TD
3377WIDTH="20%"
3378ALIGN="RIGHT"
3379VALIGN="TOP"
3380><TT
3381CLASS="PARAMETER"
3382><I
3383>str</I
3384></TT
3385>&nbsp;:</TD
3386><TD
3387WIDTH="80%"
3388ALIGN="LEFT"
3389VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003390> a zero terminated C string</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003391></TR
3392><TR
3393><TD
3394WIDTH="20%"
3395ALIGN="RIGHT"
3396VALIGN="TOP"
3397><I
3398CLASS="EMPHASIS"
3399>Returns</I
3400> :</TD
3401><TD
3402WIDTH="80%"
3403ALIGN="LEFT"
3404VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003405>the number of chars immediately written, or -1
3406in case of error.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003407></TR
3408></TABLE
3409><P
3410></P
3411></DIV
3412></DIV
3413><HR><DIV
3414CLASS="REFSECT2"
3415><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003416NAME="AEN14748"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003417></A
3418><H3
3419><A
3420NAME="XMLOUTPUTBUFFERFLUSH"
3421></A
3422>xmlOutputBufferFlush ()</H3
3423><TABLE
3424BORDER="0"
3425BGCOLOR="#D6E8FF"
3426WIDTH="100%"
3427CELLPADDING="6"
3428><TR
3429><TD
3430><PRE
3431CLASS="PROGRAMLISTING"
3432>int xmlOutputBufferFlush (<A
3433HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3434>xmlOutputBufferPtr</A
3435> out);</PRE
3436></TD
3437></TR
3438></TABLE
3439><P
3440>flushes the output I/O channel</P
3441><P
3442></P
3443><DIV
3444CLASS="INFORMALTABLE"
3445><P
3446></P
3447><TABLE
3448BORDER="0"
3449WIDTH="100%"
3450BGCOLOR="#FFD0D0"
3451CELLSPACING="0"
3452CELLPADDING="4"
3453CLASS="CALSTABLE"
3454><TR
3455><TD
3456WIDTH="20%"
3457ALIGN="RIGHT"
3458VALIGN="TOP"
3459><TT
3460CLASS="PARAMETER"
3461><I
3462>out</I
3463></TT
3464>&nbsp;:</TD
3465><TD
3466WIDTH="80%"
3467ALIGN="LEFT"
3468VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003469> a buffered output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003470></TR
3471><TR
3472><TD
3473WIDTH="20%"
3474ALIGN="RIGHT"
3475VALIGN="TOP"
3476><I
3477CLASS="EMPHASIS"
3478>Returns</I
3479> :</TD
3480><TD
3481WIDTH="80%"
3482ALIGN="LEFT"
3483VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003484>the number of byte written or -1 in case of error.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003485></TR
3486></TABLE
3487><P
3488></P
3489></DIV
3490></DIV
3491><HR><DIV
3492CLASS="REFSECT2"
3493><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003494NAME="AEN14768"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003495></A
3496><H3
3497><A
3498NAME="XMLOUTPUTBUFFERCLOSE"
3499></A
3500>xmlOutputBufferClose ()</H3
3501><TABLE
3502BORDER="0"
3503BGCOLOR="#D6E8FF"
3504WIDTH="100%"
3505CELLPADDING="6"
3506><TR
3507><TD
3508><PRE
3509CLASS="PROGRAMLISTING"
3510>int xmlOutputBufferClose (<A
3511HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3512>xmlOutputBufferPtr</A
3513> out);</PRE
3514></TD
3515></TR
3516></TABLE
3517><P
3518>flushes and close the output I/O channel
3519and free up all the associated resources</P
3520><P
3521></P
3522><DIV
3523CLASS="INFORMALTABLE"
3524><P
3525></P
3526><TABLE
3527BORDER="0"
3528WIDTH="100%"
3529BGCOLOR="#FFD0D0"
3530CELLSPACING="0"
3531CELLPADDING="4"
3532CLASS="CALSTABLE"
3533><TR
3534><TD
3535WIDTH="20%"
3536ALIGN="RIGHT"
3537VALIGN="TOP"
3538><TT
3539CLASS="PARAMETER"
3540><I
3541>out</I
3542></TT
3543>&nbsp;:</TD
3544><TD
3545WIDTH="80%"
3546ALIGN="LEFT"
3547VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003548> a buffered output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003549></TR
3550><TR
3551><TD
3552WIDTH="20%"
3553ALIGN="RIGHT"
3554VALIGN="TOP"
3555><I
3556CLASS="EMPHASIS"
3557>Returns</I
3558> :</TD
3559><TD
3560WIDTH="80%"
3561ALIGN="LEFT"
3562VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003563>the number of byte written or -1 in case of error.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003564></TR
3565></TABLE
3566><P
3567></P
3568></DIV
3569></DIV
3570><HR><DIV
3571CLASS="REFSECT2"
3572><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003573NAME="AEN14788"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003574></A
3575><H3
3576><A
3577NAME="XMLREGISTEROUTPUTCALLBACKS"
3578></A
3579>xmlRegisterOutputCallbacks ()</H3
3580><TABLE
3581BORDER="0"
3582BGCOLOR="#D6E8FF"
3583WIDTH="100%"
3584CELLPADDING="6"
3585><TR
3586><TD
3587><PRE
3588CLASS="PROGRAMLISTING"
3589>int xmlRegisterOutputCallbacks (<A
3590HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
3591>xmlOutputMatchCallback</A
3592> match,
3593 <A
3594HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK"
3595>xmlOutputOpenCallback</A
3596> open,
3597 <A
3598HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK"
3599>xmlOutputWriteCallback</A
3600> write,
3601 <A
3602HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
3603>xmlOutputCloseCallback</A
3604> close);</PRE
3605></TD
3606></TR
3607></TABLE
3608><P
3609>Register a new set of I/O callback for handling output.</P
3610><P
3611></P
3612><DIV
3613CLASS="INFORMALTABLE"
3614><P
3615></P
3616><TABLE
3617BORDER="0"
3618WIDTH="100%"
3619BGCOLOR="#FFD0D0"
3620CELLSPACING="0"
3621CELLPADDING="4"
3622CLASS="CALSTABLE"
3623><TR
3624><TD
3625WIDTH="20%"
3626ALIGN="RIGHT"
3627VALIGN="TOP"
3628><TT
3629CLASS="PARAMETER"
3630><I
3631>match</I
3632></TT
3633>&nbsp;:</TD
3634><TD
3635WIDTH="80%"
3636ALIGN="LEFT"
3637VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003638> the xmlOutputMatchCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003639></TR
3640><TR
3641><TD
3642WIDTH="20%"
3643ALIGN="RIGHT"
3644VALIGN="TOP"
3645><TT
3646CLASS="PARAMETER"
3647><I
3648>open</I
3649></TT
3650>&nbsp;:</TD
3651><TD
3652WIDTH="80%"
3653ALIGN="LEFT"
3654VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003655> the xmlOutputOpenCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003656></TR
3657><TR
3658><TD
3659WIDTH="20%"
3660ALIGN="RIGHT"
3661VALIGN="TOP"
3662><TT
3663CLASS="PARAMETER"
3664><I
3665>write</I
3666></TT
3667>&nbsp;:</TD
3668><TD
3669WIDTH="80%"
3670ALIGN="LEFT"
3671VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003672> the xmlOutputWriteCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003673></TR
3674><TR
3675><TD
3676WIDTH="20%"
3677ALIGN="RIGHT"
3678VALIGN="TOP"
3679><TT
3680CLASS="PARAMETER"
3681><I
3682>close</I
3683></TT
3684>&nbsp;:</TD
3685><TD
3686WIDTH="80%"
3687ALIGN="LEFT"
3688VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003689> the xmlOutputCloseCallback</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003690></TR
3691><TR
3692><TD
3693WIDTH="20%"
3694ALIGN="RIGHT"
3695VALIGN="TOP"
3696><I
3697CLASS="EMPHASIS"
3698>Returns</I
3699> :</TD
3700><TD
3701WIDTH="80%"
3702ALIGN="LEFT"
3703VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003704>the registered handler number or -1 in case of error</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003705></TR
3706></TABLE
3707><P
3708></P
3709></DIV
3710></DIV
3711><HR><DIV
3712CLASS="REFSECT2"
3713><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003714NAME="AEN14823"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003715></A
3716><H3
3717><A
3718NAME="XMLSAVEFILETO"
3719></A
3720>xmlSaveFileTo ()</H3
3721><TABLE
3722BORDER="0"
3723BGCOLOR="#D6E8FF"
3724WIDTH="100%"
3725CELLPADDING="6"
3726><TR
3727><TD
3728><PRE
3729CLASS="PROGRAMLISTING"
3730>int xmlSaveFileTo (<A
3731HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER"
3732>xmlOutputBuffer</A
3733> *buf,
3734 <A
3735HREF="gnome-xml-tree.html#XMLDOCPTR"
3736>xmlDocPtr</A
3737> cur,
3738 const char *encoding);</PRE
3739></TD
3740></TR
3741></TABLE
3742><P
3743>Dump an XML document to an I/O buffer.</P
3744><P
3745></P
3746><DIV
3747CLASS="INFORMALTABLE"
3748><P
3749></P
3750><TABLE
3751BORDER="0"
3752WIDTH="100%"
3753BGCOLOR="#FFD0D0"
3754CELLSPACING="0"
3755CELLPADDING="4"
3756CLASS="CALSTABLE"
3757><TR
3758><TD
3759WIDTH="20%"
3760ALIGN="RIGHT"
3761VALIGN="TOP"
3762><TT
3763CLASS="PARAMETER"
3764><I
3765>buf</I
3766></TT
3767>&nbsp;:</TD
3768><TD
3769WIDTH="80%"
3770ALIGN="LEFT"
3771VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003772> an output I/O buffer</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003773></TR
3774><TR
3775><TD
3776WIDTH="20%"
3777ALIGN="RIGHT"
3778VALIGN="TOP"
3779><TT
3780CLASS="PARAMETER"
3781><I
3782>cur</I
3783></TT
3784>&nbsp;:</TD
3785><TD
3786WIDTH="80%"
3787ALIGN="LEFT"
3788VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003789> the document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003790></TR
3791><TR
3792><TD
3793WIDTH="20%"
3794ALIGN="RIGHT"
3795VALIGN="TOP"
3796><TT
3797CLASS="PARAMETER"
3798><I
3799>encoding</I
3800></TT
3801>&nbsp;:</TD
3802><TD
3803WIDTH="80%"
3804ALIGN="LEFT"
3805VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003806> the encoding if any assuming the i/O layer handles the trancoding</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003807></TR
3808><TR
3809><TD
3810WIDTH="20%"
3811ALIGN="RIGHT"
3812VALIGN="TOP"
3813><I
3814CLASS="EMPHASIS"
3815>Returns</I
3816> :</TD
3817><TD
3818WIDTH="80%"
3819ALIGN="LEFT"
3820VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003821> the number of byte written or -1 in case of failure.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003822></TR
3823></TABLE
3824><P
3825></P
3826></DIV
3827></DIV
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003828><HR><DIV
3829CLASS="REFSECT2"
3830><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00003831NAME="AEN14852"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003832></A
3833><H3
3834><A
3835NAME="XMLNODEDUMPOUTPUT"
3836></A
3837>xmlNodeDumpOutput ()</H3
3838><TABLE
3839BORDER="0"
3840BGCOLOR="#D6E8FF"
3841WIDTH="100%"
3842CELLPADDING="6"
3843><TR
3844><TD
3845><PRE
3846CLASS="PROGRAMLISTING"
3847>void xmlNodeDumpOutput (<A
3848HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR"
3849>xmlOutputBufferPtr</A
3850> buf,
3851 <A
3852HREF="gnome-xml-tree.html#XMLDOCPTR"
3853>xmlDocPtr</A
3854> doc,
3855 <A
3856HREF="gnome-xml-tree.html#XMLNODEPTR"
3857>xmlNodePtr</A
3858> cur,
3859 int level,
3860 int format,
3861 const char *encoding);</PRE
3862></TD
3863></TR
3864></TABLE
3865><P
3866>Dump an XML node, recursive behaviour,children are printed too.</P
3867><P
3868></P
3869><DIV
3870CLASS="INFORMALTABLE"
3871><P
3872></P
3873><TABLE
3874BORDER="0"
3875WIDTH="100%"
3876BGCOLOR="#FFD0D0"
3877CELLSPACING="0"
3878CELLPADDING="4"
3879CLASS="CALSTABLE"
3880><TR
3881><TD
3882WIDTH="20%"
3883ALIGN="RIGHT"
3884VALIGN="TOP"
3885><TT
3886CLASS="PARAMETER"
3887><I
3888>buf</I
3889></TT
3890>&nbsp;:</TD
3891><TD
3892WIDTH="80%"
3893ALIGN="LEFT"
3894VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003895> the XML buffer output</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003896></TR
3897><TR
3898><TD
3899WIDTH="20%"
3900ALIGN="RIGHT"
3901VALIGN="TOP"
3902><TT
3903CLASS="PARAMETER"
3904><I
3905>doc</I
3906></TT
3907>&nbsp;:</TD
3908><TD
3909WIDTH="80%"
3910ALIGN="LEFT"
3911VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003912> the document</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003913></TR
3914><TR
3915><TD
3916WIDTH="20%"
3917ALIGN="RIGHT"
3918VALIGN="TOP"
3919><TT
3920CLASS="PARAMETER"
3921><I
3922>cur</I
3923></TT
3924>&nbsp;:</TD
3925><TD
3926WIDTH="80%"
3927ALIGN="LEFT"
3928VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003929> the current node</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003930></TR
3931><TR
3932><TD
3933WIDTH="20%"
3934ALIGN="RIGHT"
3935VALIGN="TOP"
3936><TT
3937CLASS="PARAMETER"
3938><I
3939>level</I
3940></TT
3941>&nbsp;:</TD
3942><TD
3943WIDTH="80%"
3944ALIGN="LEFT"
3945VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003946> the imbrication level for indenting</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003947></TR
3948><TR
3949><TD
3950WIDTH="20%"
3951ALIGN="RIGHT"
3952VALIGN="TOP"
3953><TT
3954CLASS="PARAMETER"
3955><I
3956>format</I
3957></TT
3958>&nbsp;:</TD
3959><TD
3960WIDTH="80%"
3961ALIGN="LEFT"
3962VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003963> is formatting allowed</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003964></TR
3965><TR
3966><TD
3967WIDTH="20%"
3968ALIGN="RIGHT"
3969VALIGN="TOP"
3970><TT
3971CLASS="PARAMETER"
3972><I
3973>encoding</I
3974></TT
3975>&nbsp;:</TD
3976><TD
3977WIDTH="80%"
3978ALIGN="LEFT"
3979VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00003980> an optional encoding string</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00003981></TR
3982></TABLE
3983><P
3984></P
3985></DIV
3986></DIV
Daniel Veillardaeea04f2000-01-25 19:27:27 +00003987></DIV
3988><DIV
3989CLASS="NAVFOOTER"
3990><BR
3991CLEAR="all"><BR><TABLE
3992WIDTH="100%"
3993BORDER="0"
3994BGCOLOR="#000000"
3995CELLPADDING="1"
3996CELLSPACING="0"
3997><TR
3998><TD
3999WIDTH="25%"
4000BGCOLOR="#C00000"
4001ALIGN="left"
4002><A
4003HREF="gnome-xml-nanoftp.html"
4004><FONT
4005COLOR="#FFFFFF"
4006SIZE="3"
4007><B
4008>&#60;&#60;&#60; Previous Page</B
4009></FONT
4010></A
4011></TD
4012><TD
4013WIDTH="25%"
4014BGCOLOR="#0000C0"
4015ALIGN="center"
4016><FONT
4017COLOR="#FFFFFF"
4018SIZE="3"
4019><B
4020><A
4021HREF="book1.html"
4022><FONT
4023COLOR="#FFFFFF"
4024SIZE="3"
4025><B
4026>Home</B
4027></FONT
4028></A
4029></B
4030></FONT
4031></TD
4032><TD
4033WIDTH="25%"
4034BGCOLOR="#00C000"
4035ALIGN="center"
4036><FONT
4037COLOR="#FFFFFF"
4038SIZE="3"
4039><B
4040><A
4041HREF="libxml-lib.html"
4042><FONT
4043COLOR="#FFFFFF"
4044SIZE="3"
4045><B
4046>Up</B
4047></FONT
4048></A
4049></B
4050></FONT
4051></TD
4052><TD
4053WIDTH="25%"
4054BGCOLOR="#C00000"
4055ALIGN="right"
4056><A
4057HREF="gnome-xml-parserinternals.html"
4058><FONT
4059COLOR="#FFFFFF"
4060SIZE="3"
4061><B
4062>Next Page &#62;&#62;&#62;</B
4063></FONT
4064></A
4065></TD
4066></TR
4067><TR
4068><TD
4069COLSPAN="2"
4070ALIGN="left"
4071><FONT
4072COLOR="#FFFFFF"
4073SIZE="3"
4074><B
4075>nanoftp</B
4076></FONT
4077></TD
4078><TD
4079COLSPAN="2"
4080ALIGN="right"
4081><FONT
4082COLOR="#FFFFFF"
4083SIZE="3"
4084><B
4085>parserInternals</B
4086></FONT
4087></TD
4088></TR
4089></TABLE
4090></DIV
4091></BODY
4092></HTML
4093>