blob: 14d4c07c59a8d1a09061e9872ba21d49eaa8b970 [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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000118NAME="AEN10409"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000119></A
120><H2
121>Name</H2
122>xmlIO &#8212; </DIV
123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000126NAME="AEN10412"
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
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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000242NAME="AEN10439"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000243></A
244><H2
245>Description</H2
246><P
247></P
248></DIV
249><DIV
250CLASS="REFSECT1"
251><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000252NAME="AEN10442"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000253></A
254><H2
255>Details</H2
256><DIV
257CLASS="REFSECT2"
258><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000259NAME="AEN10444"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000260></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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000296NAME="AEN10449"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000297></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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000322NAME="AEN10454"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000323></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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000404NAME="AEN10475"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000405></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
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000436by default if found at compile-time.
437Do an encoding check if enc == XML_CHAR_ENCODING_NONE</P
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000438><P
439></P
440><DIV
441CLASS="INFORMALTABLE"
442><P
443></P
444><TABLE
445BORDER="0"
446WIDTH="100%"
447BGCOLOR="#FFD0D0"
448CELLSPACING="0"
449CELLPADDING="4"
450CLASS="CALSTABLE"
451><TR
452><TD
453WIDTH="20%"
454ALIGN="RIGHT"
455VALIGN="TOP"
456><TT
457CLASS="PARAMETER"
458><I
459>filename</I
460></TT
461>&nbsp;:</TD
462><TD
463WIDTH="80%"
464ALIGN="LEFT"
465VALIGN="TOP"
466> a C string containing the filename</TD
467></TR
468><TR
469><TD
470WIDTH="20%"
471ALIGN="RIGHT"
472VALIGN="TOP"
473><TT
474CLASS="PARAMETER"
475><I
476>enc</I
477></TT
478>&nbsp;:</TD
479><TD
480WIDTH="80%"
481ALIGN="LEFT"
482VALIGN="TOP"
483> the charset encoding if known</TD
484></TR
485><TR
486><TD
487WIDTH="20%"
488ALIGN="RIGHT"
489VALIGN="TOP"
490><I
491CLASS="EMPHASIS"
492>Returns</I
493> :</TD
494><TD
495WIDTH="80%"
496ALIGN="LEFT"
497VALIGN="TOP"
498>the new parser input or NULL</TD
499></TR
500></TABLE
501><P
502></P
503></DIV
504></DIV
505><HR><DIV
506CLASS="REFSECT2"
507><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000508NAME="AEN10500"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000509></A
510><H3
511><A
512NAME="XMLPARSERINPUTBUFFERCREATEFILE"
513></A
514>xmlParserInputBufferCreateFile ()</H3
515><TABLE
516BORDER="0"
517BGCOLOR="#D6E8FF"
518WIDTH="100%"
519CELLPADDING="6"
520><TR
521><TD
522><PRE
523CLASS="PROGRAMLISTING"
524><A
525HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
526>xmlParserInputBufferPtr</A
527> xmlParserInputBufferCreateFile
528 (<GTKDOCLINK
529HREF="FILE"
530>FILE</GTKDOCLINK
531> *file,
532 <A
533HREF="gnome-xml-encoding.html#XMLCHARENCODING"
534>xmlCharEncoding</A
535> enc);</PRE
536></TD
537></TR
538></TABLE
539><P
540>Create a buffered parser input for the progressive parsing of a FILE *
541buffered C I/O</P
542><P
543></P
544><DIV
545CLASS="INFORMALTABLE"
546><P
547></P
548><TABLE
549BORDER="0"
550WIDTH="100%"
551BGCOLOR="#FFD0D0"
552CELLSPACING="0"
553CELLPADDING="4"
554CLASS="CALSTABLE"
555><TR
556><TD
557WIDTH="20%"
558ALIGN="RIGHT"
559VALIGN="TOP"
560><TT
561CLASS="PARAMETER"
562><I
563>file</I
564></TT
565>&nbsp;:</TD
566><TD
567WIDTH="80%"
568ALIGN="LEFT"
569VALIGN="TOP"
570> a FILE* </TD
571></TR
572><TR
573><TD
574WIDTH="20%"
575ALIGN="RIGHT"
576VALIGN="TOP"
577><TT
578CLASS="PARAMETER"
579><I
580>enc</I
581></TT
582>&nbsp;:</TD
583><TD
584WIDTH="80%"
585ALIGN="LEFT"
586VALIGN="TOP"
587> the charset encoding if known</TD
588></TR
589><TR
590><TD
591WIDTH="20%"
592ALIGN="RIGHT"
593VALIGN="TOP"
594><I
595CLASS="EMPHASIS"
596>Returns</I
597> :</TD
598><TD
599WIDTH="80%"
600ALIGN="LEFT"
601VALIGN="TOP"
602>the new parser input or NULL</TD
603></TR
604></TABLE
605><P
606></P
607></DIV
608></DIV
609><HR><DIV
610CLASS="REFSECT2"
611><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000612NAME="AEN10526"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000613></A
614><H3
615><A
616NAME="XMLPARSERINPUTBUFFERCREATEFD"
617></A
618>xmlParserInputBufferCreateFd ()</H3
619><TABLE
620BORDER="0"
621BGCOLOR="#D6E8FF"
622WIDTH="100%"
623CELLPADDING="6"
624><TR
625><TD
626><PRE
627CLASS="PROGRAMLISTING"
628><A
629HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
630>xmlParserInputBufferPtr</A
631> xmlParserInputBufferCreateFd
632 (int fd,
633 <A
634HREF="gnome-xml-encoding.html#XMLCHARENCODING"
635>xmlCharEncoding</A
636> enc);</PRE
637></TD
638></TR
639></TABLE
640><P
641>Create a buffered parser input for the progressive parsing for the input
642from a file descriptor</P
643><P
644></P
645><DIV
646CLASS="INFORMALTABLE"
647><P
648></P
649><TABLE
650BORDER="0"
651WIDTH="100%"
652BGCOLOR="#FFD0D0"
653CELLSPACING="0"
654CELLPADDING="4"
655CLASS="CALSTABLE"
656><TR
657><TD
658WIDTH="20%"
659ALIGN="RIGHT"
660VALIGN="TOP"
661><TT
662CLASS="PARAMETER"
663><I
664>fd</I
665></TT
666>&nbsp;:</TD
667><TD
668WIDTH="80%"
669ALIGN="LEFT"
670VALIGN="TOP"
671> a file descriptor number</TD
672></TR
673><TR
674><TD
675WIDTH="20%"
676ALIGN="RIGHT"
677VALIGN="TOP"
678><TT
679CLASS="PARAMETER"
680><I
681>enc</I
682></TT
683>&nbsp;:</TD
684><TD
685WIDTH="80%"
686ALIGN="LEFT"
687VALIGN="TOP"
688> the charset encoding if known</TD
689></TR
690><TR
691><TD
692WIDTH="20%"
693ALIGN="RIGHT"
694VALIGN="TOP"
695><I
696CLASS="EMPHASIS"
697>Returns</I
698> :</TD
699><TD
700WIDTH="80%"
701ALIGN="LEFT"
702VALIGN="TOP"
703>the new parser input or NULL</TD
704></TR
705></TABLE
706><P
707></P
708></DIV
709></DIV
710><HR><DIV
711CLASS="REFSECT2"
712><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000713NAME="AEN10551"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000714></A
715><H3
716><A
717NAME="XMLPARSERINPUTBUFFERREAD"
718></A
719>xmlParserInputBufferRead ()</H3
720><TABLE
721BORDER="0"
722BGCOLOR="#D6E8FF"
723WIDTH="100%"
724CELLPADDING="6"
725><TR
726><TD
727><PRE
728CLASS="PROGRAMLISTING"
729>int xmlParserInputBufferRead (<A
730HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
731>xmlParserInputBufferPtr</A
732> in,
733 int len);</PRE
734></TD
735></TR
736></TABLE
737><P
738>Refresh the content of the input buffer, the old data are considered
739consumed
740This routine handle the I18N transcoding to internal UTF-8</P
741><P
742></P
743><DIV
744CLASS="INFORMALTABLE"
745><P
746></P
747><TABLE
748BORDER="0"
749WIDTH="100%"
750BGCOLOR="#FFD0D0"
751CELLSPACING="0"
752CELLPADDING="4"
753CLASS="CALSTABLE"
754><TR
755><TD
756WIDTH="20%"
757ALIGN="RIGHT"
758VALIGN="TOP"
759><TT
760CLASS="PARAMETER"
761><I
762>in</I
763></TT
764>&nbsp;:</TD
765><TD
766WIDTH="80%"
767ALIGN="LEFT"
768VALIGN="TOP"
769> a buffered parser input</TD
770></TR
771><TR
772><TD
773WIDTH="20%"
774ALIGN="RIGHT"
775VALIGN="TOP"
776><TT
777CLASS="PARAMETER"
778><I
779>len</I
780></TT
781>&nbsp;:</TD
782><TD
783WIDTH="80%"
784ALIGN="LEFT"
785VALIGN="TOP"
786> indicative value of the amount of chars to read</TD
787></TR
788><TR
789><TD
790WIDTH="20%"
791ALIGN="RIGHT"
792VALIGN="TOP"
793><I
794CLASS="EMPHASIS"
795>Returns</I
796> :</TD
797><TD
798WIDTH="80%"
799ALIGN="LEFT"
800VALIGN="TOP"
801>the number of chars read and stored in the buffer, or -1
802in case of error.</TD
803></TR
804></TABLE
805><P
806></P
807></DIV
808></DIV
809><HR><DIV
810CLASS="REFSECT2"
811><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000812NAME="AEN10575"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000813></A
814><H3
815><A
816NAME="XMLPARSERINPUTBUFFERGROW"
817></A
818>xmlParserInputBufferGrow ()</H3
819><TABLE
820BORDER="0"
821BGCOLOR="#D6E8FF"
822WIDTH="100%"
823CELLPADDING="6"
824><TR
825><TD
826><PRE
827CLASS="PROGRAMLISTING"
828>int xmlParserInputBufferGrow (<A
829HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
830>xmlParserInputBufferPtr</A
831> in,
832 int len);</PRE
833></TD
834></TR
835></TABLE
836><P
837>Grow up the content of the input buffer, the old data are preserved
838This routine handle the I18N transcoding to internal UTF-8
839This routine is used when operating the parser in normal (pull) mode
840TODO: one should be able to remove one extra copy</P
841><P
842></P
843><DIV
844CLASS="INFORMALTABLE"
845><P
846></P
847><TABLE
848BORDER="0"
849WIDTH="100%"
850BGCOLOR="#FFD0D0"
851CELLSPACING="0"
852CELLPADDING="4"
853CLASS="CALSTABLE"
854><TR
855><TD
856WIDTH="20%"
857ALIGN="RIGHT"
858VALIGN="TOP"
859><TT
860CLASS="PARAMETER"
861><I
862>in</I
863></TT
864>&nbsp;:</TD
865><TD
866WIDTH="80%"
867ALIGN="LEFT"
868VALIGN="TOP"
869> a buffered parser input</TD
870></TR
871><TR
872><TD
873WIDTH="20%"
874ALIGN="RIGHT"
875VALIGN="TOP"
876><TT
877CLASS="PARAMETER"
878><I
879>len</I
880></TT
881>&nbsp;:</TD
882><TD
883WIDTH="80%"
884ALIGN="LEFT"
885VALIGN="TOP"
886> indicative value of the amount of chars to read</TD
887></TR
888><TR
889><TD
890WIDTH="20%"
891ALIGN="RIGHT"
892VALIGN="TOP"
893><I
894CLASS="EMPHASIS"
895>Returns</I
896> :</TD
897><TD
898WIDTH="80%"
899ALIGN="LEFT"
900VALIGN="TOP"
901>the number of chars read and stored in the buffer, or -1
902in case of error.</TD
903></TR
904></TABLE
905><P
906></P
907></DIV
908></DIV
909><HR><DIV
910CLASS="REFSECT2"
911><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000912NAME="AEN10599"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000913></A
914><H3
915><A
916NAME="XMLPARSERINPUTBUFFERPUSH"
917></A
918>xmlParserInputBufferPush ()</H3
919><TABLE
920BORDER="0"
921BGCOLOR="#D6E8FF"
922WIDTH="100%"
923CELLPADDING="6"
924><TR
925><TD
926><PRE
927CLASS="PROGRAMLISTING"
928>int xmlParserInputBufferPush (<A
929HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
930>xmlParserInputBufferPtr</A
931> in,
932 int len,
933 const char *buf);</PRE
934></TD
935></TR
936></TABLE
937><P
938>Push the content of the arry in the input buffer
939This routine handle the I18N transcoding to internal UTF-8
940This is used when operating the parser in progressive (push) mode.</P
941><P
942></P
943><DIV
944CLASS="INFORMALTABLE"
945><P
946></P
947><TABLE
948BORDER="0"
949WIDTH="100%"
950BGCOLOR="#FFD0D0"
951CELLSPACING="0"
952CELLPADDING="4"
953CLASS="CALSTABLE"
954><TR
955><TD
956WIDTH="20%"
957ALIGN="RIGHT"
958VALIGN="TOP"
959><TT
960CLASS="PARAMETER"
961><I
962>in</I
963></TT
964>&nbsp;:</TD
965><TD
966WIDTH="80%"
967ALIGN="LEFT"
968VALIGN="TOP"
969> a buffered parser input</TD
970></TR
971><TR
972><TD
973WIDTH="20%"
974ALIGN="RIGHT"
975VALIGN="TOP"
976><TT
977CLASS="PARAMETER"
978><I
979>len</I
980></TT
981>&nbsp;:</TD
982><TD
983WIDTH="80%"
984ALIGN="LEFT"
985VALIGN="TOP"
986> the size in bytes of the array.</TD
987></TR
988><TR
989><TD
990WIDTH="20%"
991ALIGN="RIGHT"
992VALIGN="TOP"
993><TT
994CLASS="PARAMETER"
995><I
996>buf</I
997></TT
998>&nbsp;:</TD
999><TD
1000WIDTH="80%"
1001ALIGN="LEFT"
1002VALIGN="TOP"
1003> an char array</TD
1004></TR
1005><TR
1006><TD
1007WIDTH="20%"
1008ALIGN="RIGHT"
1009VALIGN="TOP"
1010><I
1011CLASS="EMPHASIS"
1012>Returns</I
1013> :</TD
1014><TD
1015WIDTH="80%"
1016ALIGN="LEFT"
1017VALIGN="TOP"
1018>the number of chars read and stored in the buffer, or -1
1019in case of error.</TD
1020></TR
1021></TABLE
1022><P
1023></P
1024></DIV
1025></DIV
1026><HR><DIV
1027CLASS="REFSECT2"
1028><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001029NAME="AEN10627"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001030></A
1031><H3
1032><A
1033NAME="XMLFREEPARSERINPUTBUFFER"
1034></A
1035>xmlFreeParserInputBuffer ()</H3
1036><TABLE
1037BORDER="0"
1038BGCOLOR="#D6E8FF"
1039WIDTH="100%"
1040CELLPADDING="6"
1041><TR
1042><TD
1043><PRE
1044CLASS="PROGRAMLISTING"
1045>void xmlFreeParserInputBuffer (<A
1046HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR"
1047>xmlParserInputBufferPtr</A
1048> in);</PRE
1049></TD
1050></TR
1051></TABLE
1052><P
1053>Free up the memory used by a buffered parser input</P
1054><P
1055></P
1056><DIV
1057CLASS="INFORMALTABLE"
1058><P
1059></P
1060><TABLE
1061BORDER="0"
1062WIDTH="100%"
1063BGCOLOR="#FFD0D0"
1064CELLSPACING="0"
1065CELLPADDING="4"
1066CLASS="CALSTABLE"
1067><TR
1068><TD
1069WIDTH="20%"
1070ALIGN="RIGHT"
1071VALIGN="TOP"
1072><TT
1073CLASS="PARAMETER"
1074><I
1075>in</I
1076></TT
1077>&nbsp;:</TD
1078><TD
1079WIDTH="80%"
1080ALIGN="LEFT"
1081VALIGN="TOP"
1082> a buffered parser input</TD
1083></TR
1084></TABLE
1085><P
1086></P
1087></DIV
1088></DIV
1089><HR><DIV
1090CLASS="REFSECT2"
1091><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001092NAME="AEN10643"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001093></A
1094><H3
1095><A
1096NAME="XMLPARSERGETDIRECTORY"
1097></A
1098>xmlParserGetDirectory ()</H3
1099><TABLE
1100BORDER="0"
1101BGCOLOR="#D6E8FF"
1102WIDTH="100%"
1103CELLPADDING="6"
1104><TR
1105><TD
1106><PRE
1107CLASS="PROGRAMLISTING"
1108>char* xmlParserGetDirectory (const char *filename);</PRE
1109></TD
1110></TR
1111></TABLE
1112><P
1113></P
1114><DIV
1115CLASS="INFORMALTABLE"
1116><P
1117></P
1118><TABLE
1119BORDER="0"
1120WIDTH="100%"
1121BGCOLOR="#FFD0D0"
1122CELLSPACING="0"
1123CELLPADDING="4"
1124CLASS="CALSTABLE"
1125><TR
1126><TD
1127WIDTH="20%"
1128ALIGN="RIGHT"
1129VALIGN="TOP"
1130><TT
1131CLASS="PARAMETER"
1132><I
1133>filename</I
1134></TT
1135>&nbsp;:</TD
1136><TD
1137WIDTH="80%"
1138ALIGN="LEFT"
1139VALIGN="TOP"
1140>&nbsp;</TD
1141></TR
1142><TR
1143><TD
1144WIDTH="20%"
1145ALIGN="RIGHT"
1146VALIGN="TOP"
1147><I
1148CLASS="EMPHASIS"
1149>Returns</I
1150> :</TD
1151><TD
1152WIDTH="80%"
1153ALIGN="LEFT"
1154VALIGN="TOP"
1155>&nbsp;</TD
1156></TR
1157></TABLE
1158><P
1159></P
1160></DIV
1161></DIV
1162></DIV
1163><DIV
1164CLASS="NAVFOOTER"
1165><BR
1166CLEAR="all"><BR><TABLE
1167WIDTH="100%"
1168BORDER="0"
1169BGCOLOR="#000000"
1170CELLPADDING="1"
1171CELLSPACING="0"
1172><TR
1173><TD
1174WIDTH="25%"
1175BGCOLOR="#C00000"
1176ALIGN="left"
1177><A
1178HREF="gnome-xml-nanoftp.html"
1179><FONT
1180COLOR="#FFFFFF"
1181SIZE="3"
1182><B
1183>&#60;&#60;&#60; Previous Page</B
1184></FONT
1185></A
1186></TD
1187><TD
1188WIDTH="25%"
1189BGCOLOR="#0000C0"
1190ALIGN="center"
1191><FONT
1192COLOR="#FFFFFF"
1193SIZE="3"
1194><B
1195><A
1196HREF="book1.html"
1197><FONT
1198COLOR="#FFFFFF"
1199SIZE="3"
1200><B
1201>Home</B
1202></FONT
1203></A
1204></B
1205></FONT
1206></TD
1207><TD
1208WIDTH="25%"
1209BGCOLOR="#00C000"
1210ALIGN="center"
1211><FONT
1212COLOR="#FFFFFF"
1213SIZE="3"
1214><B
1215><A
1216HREF="libxml-lib.html"
1217><FONT
1218COLOR="#FFFFFF"
1219SIZE="3"
1220><B
1221>Up</B
1222></FONT
1223></A
1224></B
1225></FONT
1226></TD
1227><TD
1228WIDTH="25%"
1229BGCOLOR="#C00000"
1230ALIGN="right"
1231><A
1232HREF="gnome-xml-parserinternals.html"
1233><FONT
1234COLOR="#FFFFFF"
1235SIZE="3"
1236><B
1237>Next Page &#62;&#62;&#62;</B
1238></FONT
1239></A
1240></TD
1241></TR
1242><TR
1243><TD
1244COLSPAN="2"
1245ALIGN="left"
1246><FONT
1247COLOR="#FFFFFF"
1248SIZE="3"
1249><B
1250>nanoftp</B
1251></FONT
1252></TD
1253><TD
1254COLSPAN="2"
1255ALIGN="right"
1256><FONT
1257COLOR="#FFFFFF"
1258SIZE="3"
1259><B
1260>parserInternals</B
1261></FONT
1262></TD
1263></TR
1264></TABLE
1265></DIV
1266></BODY
1267></HTML
1268>