blob: 77dc6bea750280bd8c1d6d7af796697e96cf9941 [file] [log] [blame]
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001<HTML
2><HEAD
3><TITLE
4>xmlIO</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
8REL="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
114>xmlIO</H1
115><DIV
116CLASS="REFNAMEDIV"
117><A
118NAME="AEN9747"
119></A
120><H2
121>Name</H2
122>xmlIO &#8212; </DIV
123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
126NAME="AEN9750"
127></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
141struct <A
142HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFER"
143>xmlParserInputBuffer</A
144>;
145typedef <A
146HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
147>xmlParserInputBufferPtr</A
148>;
149<A
150HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
151>xmlParserInputBufferPtr</A
152> <A
153HREF="gnome-xml-xmlio.html#XMLALLOCPARSERINPUTBUFFER"
154>xmlAllocParserInputBuffer</A
155>
156 (<A
157HREF="gnome-xml-encoding.html#XMLCHARENCODING"
158>xmlCharEncoding</A
159> enc);
160<A
161HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
162>xmlParserInputBufferPtr</A
163> <A
164HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILENAME"
165>xmlParserInputBufferCreateFilename</A
166>
167 (const char *filename,
168 <A
169HREF="gnome-xml-encoding.html#XMLCHARENCODING"
170>xmlCharEncoding</A
171> enc);
172<A
173HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
174>xmlParserInputBufferPtr</A
175> <A
176HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILE"
177>xmlParserInputBufferCreateFile</A
178>
179 (<GTKDOCLINK
180HREF="FILE"
181>FILE</GTKDOCLINK
182> *file,
183 <A
184HREF="gnome-xml-encoding.html#XMLCHARENCODING"
185>xmlCharEncoding</A
186> enc);
187<A
188HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
189>xmlParserInputBufferPtr</A
190> <A
191HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFD"
192>xmlParserInputBufferCreateFd</A
193>
194 (int fd,
195 <A
196HREF="gnome-xml-encoding.html#XMLCHARENCODING"
197>xmlCharEncoding</A
198> enc);
199int <A
200HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERREAD"
201>xmlParserInputBufferRead</A
202> (<A
203HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
204>xmlParserInputBufferPtr</A
205> in,
206 int len);
207int <A
208HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERGROW"
209>xmlParserInputBufferGrow</A
210> (<A
211HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
212>xmlParserInputBufferPtr</A
213> in,
214 int len);
215int <A
216HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPUSH"
217>xmlParserInputBufferPush</A
218> (<A
219HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
220>xmlParserInputBufferPtr</A
221> in,
222 int len,
223 const char *buf);
224void <A
225HREF="gnome-xml-xmlio.html#XMLFREEPARSERINPUTBUFFER"
226>xmlFreeParserInputBuffer</A
227> (<A
228HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
229>xmlParserInputBufferPtr</A
230> in);
231char* <A
232HREF="gnome-xml-xmlio.html#XMLPARSERGETDIRECTORY"
233>xmlParserGetDirectory</A
234> (const char *filename);</PRE
235></TD
236></TR
237></TABLE
238></DIV
239><DIV
240CLASS="REFSECT1"
241><A
242NAME="AEN9777"
243></A
244><H2
245>Description</H2
246><P
247></P
248></DIV
249><DIV
250CLASS="REFSECT1"
251><A
252NAME="AEN9780"
253></A
254><H2
255>Details</H2
256><DIV
257CLASS="REFSECT2"
258><A
259NAME="AEN9782"
260></A
261><H3
262><A
263NAME="XMLPARSERINPUTBUFFER"
264></A
265>struct xmlParserInputBuffer</H3
266><TABLE
267BORDER="0"
268BGCOLOR="#D6E8FF"
269WIDTH="100%"
270CELLPADDING="6"
271><TR
272><TD
273><PRE
274CLASS="PROGRAMLISTING"
275>struct xmlParserInputBuffer {
276 /* Inputs */
277 FILE *file; /* Input on file handler */
278 void* gzfile; /* Input on a compressed stream */
279 int fd; /* Input on a file descriptor */
280 void *httpIO; /* Input from an HTTP stream */
281 void *ftpIO; /* Input from an FTP stream */
282
283 xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
284
285 xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
286};</PRE
287></TD
288></TR
289></TABLE
290><P
291></P
292></DIV
293><HR><DIV
294CLASS="REFSECT2"
295><A
296NAME="AEN9787"
297></A
298><H3
299><A
300NAME="XMLPARSERINPUTBUFFERPTR"
301></A
302>xmlParserInputBufferPtr</H3
303><TABLE
304BORDER="0"
305BGCOLOR="#D6E8FF"
306WIDTH="100%"
307CELLPADDING="6"
308><TR
309><TD
310><PRE
311CLASS="PROGRAMLISTING"
312>typedef xmlParserInputBuffer *xmlParserInputBufferPtr;</PRE
313></TD
314></TR
315></TABLE
316><P
317></P
318></DIV
319><HR><DIV
320CLASS="REFSECT2"
321><A
322NAME="AEN9792"
323></A
324><H3
325><A
326NAME="XMLALLOCPARSERINPUTBUFFER"
327></A
328>xmlAllocParserInputBuffer ()</H3
329><TABLE
330BORDER="0"
331BGCOLOR="#D6E8FF"
332WIDTH="100%"
333CELLPADDING="6"
334><TR
335><TD
336><PRE
337CLASS="PROGRAMLISTING"
338><A
339HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
340>xmlParserInputBufferPtr</A
341> xmlAllocParserInputBuffer
342 (<A
343HREF="gnome-xml-encoding.html#XMLCHARENCODING"
344>xmlCharEncoding</A
345> enc);</PRE
346></TD
347></TR
348></TABLE
349><P
350>Create a buffered parser input for progressive parsing</P
351><P
352></P
353><DIV
354CLASS="INFORMALTABLE"
355><P
356></P
357><TABLE
358BORDER="0"
359WIDTH="100%"
360BGCOLOR="#FFD0D0"
361CELLSPACING="0"
362CELLPADDING="4"
363CLASS="CALSTABLE"
364><TR
365><TD
366WIDTH="20%"
367ALIGN="RIGHT"
368VALIGN="TOP"
369><TT
370CLASS="PARAMETER"
371><I
372>enc</I
373></TT
374>&nbsp;:</TD
375><TD
376WIDTH="80%"
377ALIGN="LEFT"
378VALIGN="TOP"
379> the charset encoding if known</TD
380></TR
381><TR
382><TD
383WIDTH="20%"
384ALIGN="RIGHT"
385VALIGN="TOP"
386><I
387CLASS="EMPHASIS"
388>Returns</I
389> :</TD
390><TD
391WIDTH="80%"
392ALIGN="LEFT"
393VALIGN="TOP"
394>the new parser input or NULL</TD
395></TR
396></TABLE
397><P
398></P
399></DIV
400></DIV
401><HR><DIV
402CLASS="REFSECT2"
403><A
404NAME="AEN9813"
405></A
406><H3
407><A
408NAME="XMLPARSERINPUTBUFFERCREATEFILENAME"
409></A
410>xmlParserInputBufferCreateFilename ()</H3
411><TABLE
412BORDER="0"
413BGCOLOR="#D6E8FF"
414WIDTH="100%"
415CELLPADDING="6"
416><TR
417><TD
418><PRE
419CLASS="PROGRAMLISTING"
420><A
421HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
422>xmlParserInputBufferPtr</A
423> xmlParserInputBufferCreateFilename
424 (const char *filename,
425 <A
426HREF="gnome-xml-encoding.html#XMLCHARENCODING"
427>xmlCharEncoding</A
428> enc);</PRE
429></TD
430></TR
431></TABLE
432><P
433>Create a buffered parser input for the progressive parsing of a file
434If filename is "-' then we use stdin as the input.
435Automatic support for ZLIB/Compress compressed document is provided
436by default if found at compile-time.</P
437><P
438></P
439><DIV
440CLASS="INFORMALTABLE"
441><P
442></P
443><TABLE
444BORDER="0"
445WIDTH="100%"
446BGCOLOR="#FFD0D0"
447CELLSPACING="0"
448CELLPADDING="4"
449CLASS="CALSTABLE"
450><TR
451><TD
452WIDTH="20%"
453ALIGN="RIGHT"
454VALIGN="TOP"
455><TT
456CLASS="PARAMETER"
457><I
458>filename</I
459></TT
460>&nbsp;:</TD
461><TD
462WIDTH="80%"
463ALIGN="LEFT"
464VALIGN="TOP"
465> a C string containing the filename</TD
466></TR
467><TR
468><TD
469WIDTH="20%"
470ALIGN="RIGHT"
471VALIGN="TOP"
472><TT
473CLASS="PARAMETER"
474><I
475>enc</I
476></TT
477>&nbsp;:</TD
478><TD
479WIDTH="80%"
480ALIGN="LEFT"
481VALIGN="TOP"
482> the charset encoding if known</TD
483></TR
484><TR
485><TD
486WIDTH="20%"
487ALIGN="RIGHT"
488VALIGN="TOP"
489><I
490CLASS="EMPHASIS"
491>Returns</I
492> :</TD
493><TD
494WIDTH="80%"
495ALIGN="LEFT"
496VALIGN="TOP"
497>the new parser input or NULL</TD
498></TR
499></TABLE
500><P
501></P
502></DIV
503></DIV
504><HR><DIV
505CLASS="REFSECT2"
506><A
507NAME="AEN9838"
508></A
509><H3
510><A
511NAME="XMLPARSERINPUTBUFFERCREATEFILE"
512></A
513>xmlParserInputBufferCreateFile ()</H3
514><TABLE
515BORDER="0"
516BGCOLOR="#D6E8FF"
517WIDTH="100%"
518CELLPADDING="6"
519><TR
520><TD
521><PRE
522CLASS="PROGRAMLISTING"
523><A
524HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
525>xmlParserInputBufferPtr</A
526> xmlParserInputBufferCreateFile
527 (<GTKDOCLINK
528HREF="FILE"
529>FILE</GTKDOCLINK
530> *file,
531 <A
532HREF="gnome-xml-encoding.html#XMLCHARENCODING"
533>xmlCharEncoding</A
534> enc);</PRE
535></TD
536></TR
537></TABLE
538><P
539>Create a buffered parser input for the progressive parsing of a FILE *
540buffered C I/O</P
541><P
542></P
543><DIV
544CLASS="INFORMALTABLE"
545><P
546></P
547><TABLE
548BORDER="0"
549WIDTH="100%"
550BGCOLOR="#FFD0D0"
551CELLSPACING="0"
552CELLPADDING="4"
553CLASS="CALSTABLE"
554><TR
555><TD
556WIDTH="20%"
557ALIGN="RIGHT"
558VALIGN="TOP"
559><TT
560CLASS="PARAMETER"
561><I
562>file</I
563></TT
564>&nbsp;:</TD
565><TD
566WIDTH="80%"
567ALIGN="LEFT"
568VALIGN="TOP"
569> a FILE* </TD
570></TR
571><TR
572><TD
573WIDTH="20%"
574ALIGN="RIGHT"
575VALIGN="TOP"
576><TT
577CLASS="PARAMETER"
578><I
579>enc</I
580></TT
581>&nbsp;:</TD
582><TD
583WIDTH="80%"
584ALIGN="LEFT"
585VALIGN="TOP"
586> the charset encoding if known</TD
587></TR
588><TR
589><TD
590WIDTH="20%"
591ALIGN="RIGHT"
592VALIGN="TOP"
593><I
594CLASS="EMPHASIS"
595>Returns</I
596> :</TD
597><TD
598WIDTH="80%"
599ALIGN="LEFT"
600VALIGN="TOP"
601>the new parser input or NULL</TD
602></TR
603></TABLE
604><P
605></P
606></DIV
607></DIV
608><HR><DIV
609CLASS="REFSECT2"
610><A
611NAME="AEN9864"
612></A
613><H3
614><A
615NAME="XMLPARSERINPUTBUFFERCREATEFD"
616></A
617>xmlParserInputBufferCreateFd ()</H3
618><TABLE
619BORDER="0"
620BGCOLOR="#D6E8FF"
621WIDTH="100%"
622CELLPADDING="6"
623><TR
624><TD
625><PRE
626CLASS="PROGRAMLISTING"
627><A
628HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
629>xmlParserInputBufferPtr</A
630> xmlParserInputBufferCreateFd
631 (int fd,
632 <A
633HREF="gnome-xml-encoding.html#XMLCHARENCODING"
634>xmlCharEncoding</A
635> enc);</PRE
636></TD
637></TR
638></TABLE
639><P
640>Create a buffered parser input for the progressive parsing for the input
641from a file descriptor</P
642><P
643></P
644><DIV
645CLASS="INFORMALTABLE"
646><P
647></P
648><TABLE
649BORDER="0"
650WIDTH="100%"
651BGCOLOR="#FFD0D0"
652CELLSPACING="0"
653CELLPADDING="4"
654CLASS="CALSTABLE"
655><TR
656><TD
657WIDTH="20%"
658ALIGN="RIGHT"
659VALIGN="TOP"
660><TT
661CLASS="PARAMETER"
662><I
663>fd</I
664></TT
665>&nbsp;:</TD
666><TD
667WIDTH="80%"
668ALIGN="LEFT"
669VALIGN="TOP"
670> a file descriptor number</TD
671></TR
672><TR
673><TD
674WIDTH="20%"
675ALIGN="RIGHT"
676VALIGN="TOP"
677><TT
678CLASS="PARAMETER"
679><I
680>enc</I
681></TT
682>&nbsp;:</TD
683><TD
684WIDTH="80%"
685ALIGN="LEFT"
686VALIGN="TOP"
687> the charset encoding if known</TD
688></TR
689><TR
690><TD
691WIDTH="20%"
692ALIGN="RIGHT"
693VALIGN="TOP"
694><I
695CLASS="EMPHASIS"
696>Returns</I
697> :</TD
698><TD
699WIDTH="80%"
700ALIGN="LEFT"
701VALIGN="TOP"
702>the new parser input or NULL</TD
703></TR
704></TABLE
705><P
706></P
707></DIV
708></DIV
709><HR><DIV
710CLASS="REFSECT2"
711><A
712NAME="AEN9889"
713></A
714><H3
715><A
716NAME="XMLPARSERINPUTBUFFERREAD"
717></A
718>xmlParserInputBufferRead ()</H3
719><TABLE
720BORDER="0"
721BGCOLOR="#D6E8FF"
722WIDTH="100%"
723CELLPADDING="6"
724><TR
725><TD
726><PRE
727CLASS="PROGRAMLISTING"
728>int xmlParserInputBufferRead (<A
729HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
730>xmlParserInputBufferPtr</A
731> in,
732 int len);</PRE
733></TD
734></TR
735></TABLE
736><P
737>Refresh the content of the input buffer, the old data are considered
738consumed
739This routine handle the I18N transcoding to internal UTF-8</P
740><P
741></P
742><DIV
743CLASS="INFORMALTABLE"
744><P
745></P
746><TABLE
747BORDER="0"
748WIDTH="100%"
749BGCOLOR="#FFD0D0"
750CELLSPACING="0"
751CELLPADDING="4"
752CLASS="CALSTABLE"
753><TR
754><TD
755WIDTH="20%"
756ALIGN="RIGHT"
757VALIGN="TOP"
758><TT
759CLASS="PARAMETER"
760><I
761>in</I
762></TT
763>&nbsp;:</TD
764><TD
765WIDTH="80%"
766ALIGN="LEFT"
767VALIGN="TOP"
768> a buffered parser input</TD
769></TR
770><TR
771><TD
772WIDTH="20%"
773ALIGN="RIGHT"
774VALIGN="TOP"
775><TT
776CLASS="PARAMETER"
777><I
778>len</I
779></TT
780>&nbsp;:</TD
781><TD
782WIDTH="80%"
783ALIGN="LEFT"
784VALIGN="TOP"
785> indicative value of the amount of chars to read</TD
786></TR
787><TR
788><TD
789WIDTH="20%"
790ALIGN="RIGHT"
791VALIGN="TOP"
792><I
793CLASS="EMPHASIS"
794>Returns</I
795> :</TD
796><TD
797WIDTH="80%"
798ALIGN="LEFT"
799VALIGN="TOP"
800>the number of chars read and stored in the buffer, or -1
801in case of error.</TD
802></TR
803></TABLE
804><P
805></P
806></DIV
807></DIV
808><HR><DIV
809CLASS="REFSECT2"
810><A
811NAME="AEN9913"
812></A
813><H3
814><A
815NAME="XMLPARSERINPUTBUFFERGROW"
816></A
817>xmlParserInputBufferGrow ()</H3
818><TABLE
819BORDER="0"
820BGCOLOR="#D6E8FF"
821WIDTH="100%"
822CELLPADDING="6"
823><TR
824><TD
825><PRE
826CLASS="PROGRAMLISTING"
827>int xmlParserInputBufferGrow (<A
828HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
829>xmlParserInputBufferPtr</A
830> in,
831 int len);</PRE
832></TD
833></TR
834></TABLE
835><P
836>Grow up the content of the input buffer, the old data are preserved
837This routine handle the I18N transcoding to internal UTF-8
838This routine is used when operating the parser in normal (pull) mode
839TODO: one should be able to remove one extra copy</P
840><P
841></P
842><DIV
843CLASS="INFORMALTABLE"
844><P
845></P
846><TABLE
847BORDER="0"
848WIDTH="100%"
849BGCOLOR="#FFD0D0"
850CELLSPACING="0"
851CELLPADDING="4"
852CLASS="CALSTABLE"
853><TR
854><TD
855WIDTH="20%"
856ALIGN="RIGHT"
857VALIGN="TOP"
858><TT
859CLASS="PARAMETER"
860><I
861>in</I
862></TT
863>&nbsp;:</TD
864><TD
865WIDTH="80%"
866ALIGN="LEFT"
867VALIGN="TOP"
868> a buffered parser input</TD
869></TR
870><TR
871><TD
872WIDTH="20%"
873ALIGN="RIGHT"
874VALIGN="TOP"
875><TT
876CLASS="PARAMETER"
877><I
878>len</I
879></TT
880>&nbsp;:</TD
881><TD
882WIDTH="80%"
883ALIGN="LEFT"
884VALIGN="TOP"
885> indicative value of the amount of chars to read</TD
886></TR
887><TR
888><TD
889WIDTH="20%"
890ALIGN="RIGHT"
891VALIGN="TOP"
892><I
893CLASS="EMPHASIS"
894>Returns</I
895> :</TD
896><TD
897WIDTH="80%"
898ALIGN="LEFT"
899VALIGN="TOP"
900>the number of chars read and stored in the buffer, or -1
901in case of error.</TD
902></TR
903></TABLE
904><P
905></P
906></DIV
907></DIV
908><HR><DIV
909CLASS="REFSECT2"
910><A
911NAME="AEN9937"
912></A
913><H3
914><A
915NAME="XMLPARSERINPUTBUFFERPUSH"
916></A
917>xmlParserInputBufferPush ()</H3
918><TABLE
919BORDER="0"
920BGCOLOR="#D6E8FF"
921WIDTH="100%"
922CELLPADDING="6"
923><TR
924><TD
925><PRE
926CLASS="PROGRAMLISTING"
927>int xmlParserInputBufferPush (<A
928HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
929>xmlParserInputBufferPtr</A
930> in,
931 int len,
932 const char *buf);</PRE
933></TD
934></TR
935></TABLE
936><P
937>Push the content of the arry in the input buffer
938This routine handle the I18N transcoding to internal UTF-8
939This is used when operating the parser in progressive (push) mode.</P
940><P
941></P
942><DIV
943CLASS="INFORMALTABLE"
944><P
945></P
946><TABLE
947BORDER="0"
948WIDTH="100%"
949BGCOLOR="#FFD0D0"
950CELLSPACING="0"
951CELLPADDING="4"
952CLASS="CALSTABLE"
953><TR
954><TD
955WIDTH="20%"
956ALIGN="RIGHT"
957VALIGN="TOP"
958><TT
959CLASS="PARAMETER"
960><I
961>in</I
962></TT
963>&nbsp;:</TD
964><TD
965WIDTH="80%"
966ALIGN="LEFT"
967VALIGN="TOP"
968> a buffered parser input</TD
969></TR
970><TR
971><TD
972WIDTH="20%"
973ALIGN="RIGHT"
974VALIGN="TOP"
975><TT
976CLASS="PARAMETER"
977><I
978>len</I
979></TT
980>&nbsp;:</TD
981><TD
982WIDTH="80%"
983ALIGN="LEFT"
984VALIGN="TOP"
985> the size in bytes of the array.</TD
986></TR
987><TR
988><TD
989WIDTH="20%"
990ALIGN="RIGHT"
991VALIGN="TOP"
992><TT
993CLASS="PARAMETER"
994><I
995>buf</I
996></TT
997>&nbsp;:</TD
998><TD
999WIDTH="80%"
1000ALIGN="LEFT"
1001VALIGN="TOP"
1002> an char array</TD
1003></TR
1004><TR
1005><TD
1006WIDTH="20%"
1007ALIGN="RIGHT"
1008VALIGN="TOP"
1009><I
1010CLASS="EMPHASIS"
1011>Returns</I
1012> :</TD
1013><TD
1014WIDTH="80%"
1015ALIGN="LEFT"
1016VALIGN="TOP"
1017>the number of chars read and stored in the buffer, or -1
1018in case of error.</TD
1019></TR
1020></TABLE
1021><P
1022></P
1023></DIV
1024></DIV
1025><HR><DIV
1026CLASS="REFSECT2"
1027><A
1028NAME="AEN9965"
1029></A
1030><H3
1031><A
1032NAME="XMLFREEPARSERINPUTBUFFER"
1033></A
1034>xmlFreeParserInputBuffer ()</H3
1035><TABLE
1036BORDER="0"
1037BGCOLOR="#D6E8FF"
1038WIDTH="100%"
1039CELLPADDING="6"
1040><TR
1041><TD
1042><PRE
1043CLASS="PROGRAMLISTING"
1044>void xmlFreeParserInputBuffer (<A
1045HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1046>xmlParserInputBufferPtr</A
1047> in);</PRE
1048></TD
1049></TR
1050></TABLE
1051><P
1052>Free up the memory used by a buffered parser input</P
1053><P
1054></P
1055><DIV
1056CLASS="INFORMALTABLE"
1057><P
1058></P
1059><TABLE
1060BORDER="0"
1061WIDTH="100%"
1062BGCOLOR="#FFD0D0"
1063CELLSPACING="0"
1064CELLPADDING="4"
1065CLASS="CALSTABLE"
1066><TR
1067><TD
1068WIDTH="20%"
1069ALIGN="RIGHT"
1070VALIGN="TOP"
1071><TT
1072CLASS="PARAMETER"
1073><I
1074>in</I
1075></TT
1076>&nbsp;:</TD
1077><TD
1078WIDTH="80%"
1079ALIGN="LEFT"
1080VALIGN="TOP"
1081> a buffered parser input</TD
1082></TR
1083></TABLE
1084><P
1085></P
1086></DIV
1087></DIV
1088><HR><DIV
1089CLASS="REFSECT2"
1090><A
1091NAME="AEN9981"
1092></A
1093><H3
1094><A
1095NAME="XMLPARSERGETDIRECTORY"
1096></A
1097>xmlParserGetDirectory ()</H3
1098><TABLE
1099BORDER="0"
1100BGCOLOR="#D6E8FF"
1101WIDTH="100%"
1102CELLPADDING="6"
1103><TR
1104><TD
1105><PRE
1106CLASS="PROGRAMLISTING"
1107>char* xmlParserGetDirectory (const char *filename);</PRE
1108></TD
1109></TR
1110></TABLE
1111><P
1112></P
1113><DIV
1114CLASS="INFORMALTABLE"
1115><P
1116></P
1117><TABLE
1118BORDER="0"
1119WIDTH="100%"
1120BGCOLOR="#FFD0D0"
1121CELLSPACING="0"
1122CELLPADDING="4"
1123CLASS="CALSTABLE"
1124><TR
1125><TD
1126WIDTH="20%"
1127ALIGN="RIGHT"
1128VALIGN="TOP"
1129><TT
1130CLASS="PARAMETER"
1131><I
1132>filename</I
1133></TT
1134>&nbsp;:</TD
1135><TD
1136WIDTH="80%"
1137ALIGN="LEFT"
1138VALIGN="TOP"
1139>&nbsp;</TD
1140></TR
1141><TR
1142><TD
1143WIDTH="20%"
1144ALIGN="RIGHT"
1145VALIGN="TOP"
1146><I
1147CLASS="EMPHASIS"
1148>Returns</I
1149> :</TD
1150><TD
1151WIDTH="80%"
1152ALIGN="LEFT"
1153VALIGN="TOP"
1154>&nbsp;</TD
1155></TR
1156></TABLE
1157><P
1158></P
1159></DIV
1160></DIV
1161></DIV
1162><DIV
1163CLASS="NAVFOOTER"
1164><BR
1165CLEAR="all"><BR><TABLE
1166WIDTH="100%"
1167BORDER="0"
1168BGCOLOR="#000000"
1169CELLPADDING="1"
1170CELLSPACING="0"
1171><TR
1172><TD
1173WIDTH="25%"
1174BGCOLOR="#C00000"
1175ALIGN="left"
1176><A
1177HREF="gnome-xml-nanoftp.html"
1178><FONT
1179COLOR="#FFFFFF"
1180SIZE="3"
1181><B
1182>&#60;&#60;&#60; Previous Page</B
1183></FONT
1184></A
1185></TD
1186><TD
1187WIDTH="25%"
1188BGCOLOR="#0000C0"
1189ALIGN="center"
1190><FONT
1191COLOR="#FFFFFF"
1192SIZE="3"
1193><B
1194><A
1195HREF="book1.html"
1196><FONT
1197COLOR="#FFFFFF"
1198SIZE="3"
1199><B
1200>Home</B
1201></FONT
1202></A
1203></B
1204></FONT
1205></TD
1206><TD
1207WIDTH="25%"
1208BGCOLOR="#00C000"
1209ALIGN="center"
1210><FONT
1211COLOR="#FFFFFF"
1212SIZE="3"
1213><B
1214><A
1215HREF="libxml-lib.html"
1216><FONT
1217COLOR="#FFFFFF"
1218SIZE="3"
1219><B
1220>Up</B
1221></FONT
1222></A
1223></B
1224></FONT
1225></TD
1226><TD
1227WIDTH="25%"
1228BGCOLOR="#C00000"
1229ALIGN="right"
1230><A
1231HREF="gnome-xml-parserinternals.html"
1232><FONT
1233COLOR="#FFFFFF"
1234SIZE="3"
1235><B
1236>Next Page &#62;&#62;&#62;</B
1237></FONT
1238></A
1239></TD
1240></TR
1241><TR
1242><TD
1243COLSPAN="2"
1244ALIGN="left"
1245><FONT
1246COLOR="#FFFFFF"
1247SIZE="3"
1248><B
1249>nanoftp</B
1250></FONT
1251></TD
1252><TD
1253COLSPAN="2"
1254ALIGN="right"
1255><FONT
1256COLOR="#FFFFFF"
1257SIZE="3"
1258><B
1259>parserInternals</B
1260></FONT
1261></TD
1262></TR
1263></TABLE
1264></DIV
1265></BODY
1266></HTML
1267>