7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Gnome XML Library Reference Manual"
11 HREF="book1.html"><LINK
13 TITLE="Libxml Library Reference"
14 HREF="libxml-lib.html"><LINK
17 HREF="libxml-nanoftp.html"><LINK
20 HREF="libxml-catalog.html"></HEAD
43 >Gnome XML Library Reference Manual</FONT
52 HREF="libxml-nanoftp.html"
57 ><<< Previous Page</B
90 HREF="libxml-lib.html"
106 HREF="libxml-catalog.html"
111 >Next Page >>></B
120 NAME="LIBXML-XMLIO">xmlIO</H1
128 >xmlIO -- </DIV
130 CLASS="REFSYNOPSISDIV"
146 HREF="libxml-xmlio.html#XMLINPUTMATCHCALLBACK"
147 >*xmlInputMatchCallback</A
148 >) (char const *filename);
150 HREF="libxml-xmlio.html#XMLINPUTOPENCALLBACK"
151 >*xmlInputOpenCallback</A
152 >) (char const *filename);
154 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
155 >*xmlInputReadCallback</A
160 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
161 >*xmlInputCloseCallback</A
164 HREF="libxml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
165 >*xmlOutputMatchCallback</A
166 >) (char const *filename);
168 HREF="libxml-xmlio.html#XMLOUTPUTOPENCALLBACK"
169 >*xmlOutputOpenCallback</A
170 >) (char const *filename);
172 HREF="libxml-xmlio.html#XMLOUTPUTWRITECALLBACK"
173 >*xmlOutputWriteCallback</A
178 HREF="libxml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
179 >*xmlOutputCloseCallback</A
182 HREF="libxml-tree.html#XMLPARSERINPUTBUFFER"
183 >xmlParserInputBuffer</A
186 HREF="libxml-tree.html#XMLOUTPUTBUFFER"
190 HREF="libxml-xmlio.html#XMLCLEANUPINPUTCALLBACKS"
191 >xmlCleanupInputCallbacks</A
194 HREF="libxml-xmlio.html#XMLCLEANUPOUTPUTCALLBACKS"
195 >xmlCleanupOutputCallbacks</A
198 HREF="libxml-xmlio.html#XMLREGISTERDEFAULTINPUTCALLBACKS"
199 >xmlRegisterDefaultInputCallbacks</A
203 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
204 >xmlParserInputBufferPtr</A
206 HREF="libxml-xmlio.html#XMLALLOCPARSERINPUTBUFFER"
207 >xmlAllocParserInputBuffer</A
210 HREF="libxml-encoding.html#XMLCHARENCODING"
214 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
215 >xmlParserInputBufferPtr</A
217 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFNAME"
218 >xmlParserInputBufferCreateFname</A
222 HREF="libxml-encoding.html#XMLCHARENCODING"
226 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
227 >xmlParserInputBufferPtr</A
229 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILENAME"
230 >xmlParserInputBufferCreateFilename</A
234 HREF="libxml-encoding.html#XMLCHARENCODING"
238 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
239 >xmlParserInputBufferPtr</A
241 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILE"
242 >xmlParserInputBufferCreateFile</A
249 HREF="libxml-encoding.html#XMLCHARENCODING"
253 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
254 >xmlParserInputBufferPtr</A
256 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFD"
257 >xmlParserInputBufferCreateFd</A
261 HREF="libxml-encoding.html#XMLCHARENCODING"
265 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
266 >xmlParserInputBufferPtr</A
268 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEMEM"
269 >xmlParserInputBufferCreateMem</A
274 HREF="libxml-encoding.html#XMLCHARENCODING"
278 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
279 >xmlParserInputBufferPtr</A
281 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEIO"
282 >xmlParserInputBufferCreateIO</A
285 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
286 >xmlInputReadCallback</A
289 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
290 >xmlInputCloseCallback</A
294 HREF="libxml-encoding.html#XMLCHARENCODING"
298 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERREAD"
299 >xmlParserInputBufferRead</A
301 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
302 >xmlParserInputBufferPtr</A
306 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERGROW"
307 >xmlParserInputBufferGrow</A
309 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
310 >xmlParserInputBufferPtr</A
314 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERPUSH"
315 >xmlParserInputBufferPush</A
317 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
318 >xmlParserInputBufferPtr</A
323 HREF="libxml-xmlio.html#XMLFREEPARSERINPUTBUFFER"
324 >xmlFreeParserInputBuffer</A
326 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
327 >xmlParserInputBufferPtr</A
330 HREF="libxml-xmlio.html#XMLPARSERGETDIRECTORY"
331 >xmlParserGetDirectory</A
332 > (const char *filename);
334 HREF="libxml-xmlio.html#XMLREGISTERINPUTCALLBACKS"
335 >xmlRegisterInputCallbacks</A
337 HREF="libxml-xmlio.html#XMLINPUTMATCHCALLBACK"
338 >xmlInputMatchCallback</A
341 HREF="libxml-xmlio.html#XMLINPUTOPENCALLBACK"
342 >xmlInputOpenCallback</A
345 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
346 >xmlInputReadCallback</A
349 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
350 >xmlInputCloseCallback</A
353 HREF="libxml-xmlio.html#XMLREGISTERDEFAULTOUTPUTCALLBACKS"
354 >xmlRegisterDefaultOutputCallbacks</A
358 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
359 >xmlOutputBufferPtr</A
361 HREF="libxml-xmlio.html#XMLALLOCOUTPUTBUFFER"
362 >xmlAllocOutputBuffer</A
364 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
365 >xmlCharEncodingHandlerPtr</A
368 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
369 >xmlOutputBufferPtr</A
371 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERCREATEFILENAME"
372 >xmlOutputBufferCreateFilename</A
376 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
377 >xmlCharEncodingHandlerPtr</A
381 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
382 >xmlOutputBufferPtr</A
384 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERCREATEFILE"
385 >xmlOutputBufferCreateFile</A
392 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
393 >xmlCharEncodingHandlerPtr</A
396 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
397 >xmlOutputBufferPtr</A
399 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERCREATEFD"
400 >xmlOutputBufferCreateFd</A
403 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
404 >xmlCharEncodingHandlerPtr</A
407 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
408 >xmlOutputBufferPtr</A
410 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERCREATEIO"
411 >xmlOutputBufferCreateIO</A
413 HREF="libxml-xmlio.html#XMLOUTPUTWRITECALLBACK"
414 >xmlOutputWriteCallback</A
417 HREF="libxml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
418 >xmlOutputCloseCallback</A
422 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
423 >xmlCharEncodingHandlerPtr</A
426 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERWRITE"
427 >xmlOutputBufferWrite</A
429 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
430 >xmlOutputBufferPtr</A
435 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERWRITESTRING"
436 >xmlOutputBufferWriteString</A
438 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
439 >xmlOutputBufferPtr</A
443 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERFLUSH"
444 >xmlOutputBufferFlush</A
446 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
447 >xmlOutputBufferPtr</A
450 HREF="libxml-xmlio.html#XMLOUTPUTBUFFERCLOSE"
451 >xmlOutputBufferClose</A
453 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
454 >xmlOutputBufferPtr</A
457 HREF="libxml-xmlio.html#XMLREGISTEROUTPUTCALLBACKS"
458 >xmlRegisterOutputCallbacks</A
460 HREF="libxml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
461 >xmlOutputMatchCallback</A
464 HREF="libxml-xmlio.html#XMLOUTPUTOPENCALLBACK"
465 >xmlOutputOpenCallback</A
468 HREF="libxml-xmlio.html#XMLOUTPUTWRITECALLBACK"
469 >xmlOutputWriteCallback</A
472 HREF="libxml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
473 >xmlOutputCloseCallback</A
476 HREF="libxml-xmlio.html#XMLIOHTTPOPENW"
478 > (const char *post_uri,
481 HREF="libxml-xmlio.html#XMLREGISTERHTTPPOSTCALLBACKS"
482 >xmlRegisterHTTPPostCallbacks</A
485 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
486 >xmlParserInputPtr</A
488 HREF="libxml-xmlio.html#XMLNONETEXTERNALENTITYLOADER"
489 >xmlNoNetExternalEntityLoader</A
494 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
498 HREF="libxml-tree.html#XMLCHAR"
501 HREF="libxml-xmlio.html#XMLNORMALIZEWINDOWSPATH"
502 >xmlNormalizeWindowsPath</A
504 HREF="libxml-tree.html#XMLCHAR"
508 HREF="libxml-xmlio.html#XMLCHECKFILENAME"
510 > (const char *path);
512 HREF="libxml-xmlio.html#XMLFILEMATCH"
514 > (const char *filename);
516 HREF="libxml-xmlio.html#XMLFILEOPEN"
518 > (const char *filename);
520 HREF="libxml-xmlio.html#XMLFILEREAD"
526 HREF="libxml-xmlio.html#XMLFILECLOSE"
530 HREF="libxml-xmlio.html#XMLIOHTTPMATCH"
532 > (const char *filename);
534 HREF="libxml-xmlio.html#XMLIOHTTPOPEN"
536 > (const char *filename);
538 HREF="libxml-xmlio.html#XMLIOHTTPREAD"
544 HREF="libxml-xmlio.html#XMLIOHTTPCLOSE"
548 HREF="libxml-xmlio.html#XMLIOFTPMATCH"
550 > (const char *filename);
552 HREF="libxml-xmlio.html#XMLIOFTPOPEN"
554 > (const char *filename);
556 HREF="libxml-xmlio.html#XMLIOFTPREAD"
562 HREF="libxml-xmlio.html#XMLIOFTPCLOSE"
564 > (void *context);</PRE
593 NAME="XMLINPUTMATCHCALLBACK"
595 >xmlInputMatchCallback ()</H3
604 CLASS="PROGRAMLISTING"
605 >int (*xmlInputMatchCallback) (char const *filename);</PRE
610 >Callback used in the I/O Input API to detect if the current handler
611 can provide input fonctionnalities for this resource.</P
615 CLASS="INFORMALTABLE"
642 > the filename or URI</TD
660 >1 if yes and 0 if another Input module should be used</TD
675 NAME="XMLINPUTOPENCALLBACK"
677 >xmlInputOpenCallback ()</H3
686 CLASS="PROGRAMLISTING"
687 >void* (*xmlInputOpenCallback) (char const *filename);</PRE
692 >Callback used in the I/O Input API to open the resource</P
696 CLASS="INFORMALTABLE"
723 > the filename or URI</TD
738 NAME="XMLINPUTREADCALLBACK"
740 >xmlInputReadCallback ()</H3
749 CLASS="PROGRAMLISTING"
750 >int (*xmlInputReadCallback) (void *context,
757 >Callback used in the I/O Input API to read the resource</P
761 CLASS="INFORMALTABLE"
788 > an Input context</TD
805 > the buffer to store data read</TD
822 > the length of the buffer in bytes</TD
840 >the number of bytes read or -1 in case of error</TD
855 NAME="XMLINPUTCLOSECALLBACK"
857 >xmlInputCloseCallback ()</H3
866 CLASS="PROGRAMLISTING"
867 >int (*xmlInputCloseCallback) (void *context);</PRE
872 >Callback used in the I/O Input API to close the resource</P
876 CLASS="INFORMALTABLE"
903 > an Input context</TD
921 >0 or -1 in case of error</TD
936 NAME="XMLOUTPUTMATCHCALLBACK"
938 >xmlOutputMatchCallback ()</H3
947 CLASS="PROGRAMLISTING"
948 >int (*xmlOutputMatchCallback) (char const *filename);</PRE
953 >Callback used in the I/O Output API to detect if the current handler
954 can provide output fonctionnalities for this resource.</P
958 CLASS="INFORMALTABLE"
985 > the filename or URI</TD
1003 >1 if yes and 0 if another Output module should be used</TD
1018 NAME="XMLOUTPUTOPENCALLBACK"
1020 >xmlOutputOpenCallback ()</H3
1029 CLASS="PROGRAMLISTING"
1030 >void* (*xmlOutputOpenCallback) (char const *filename);</PRE
1035 >Callback used in the I/O Output API to open the resource</P
1039 CLASS="INFORMALTABLE"
1066 > the filename or URI</TD
1081 NAME="XMLOUTPUTWRITECALLBACK"
1083 >xmlOutputWriteCallback ()</H3
1092 CLASS="PROGRAMLISTING"
1093 >int (*xmlOutputWriteCallback) (void *context,
1100 >Callback used in the I/O Output API to write to the resource</P
1104 CLASS="INFORMALTABLE"
1131 > an Output context</TD
1148 > the buffer of data to write</TD
1165 > the length of the buffer in bytes</TD
1183 >the number of bytes written or -1 in case of error</TD
1198 NAME="XMLOUTPUTCLOSECALLBACK"
1200 >xmlOutputCloseCallback ()</H3
1209 CLASS="PROGRAMLISTING"
1210 >int (*xmlOutputCloseCallback) (void *context);</PRE
1215 >Callback used in the I/O Output API to close the resource</P
1219 CLASS="INFORMALTABLE"
1246 > an Output context</TD
1264 >0 or -1 in case of error</TD
1279 NAME="XMLPARSERINPUTBUFFER"
1281 >struct xmlParserInputBuffer</H3
1290 CLASS="PROGRAMLISTING"
1291 >struct xmlParserInputBuffer {
1293 xmlInputReadCallback readcallback;
1294 xmlInputCloseCallback closecallback;
1296 xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
1298 xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
1299 xmlBufferPtr raw; /* if encoder != NULL buffer for raw input */
1314 NAME="XMLOUTPUTBUFFER"
1316 >struct xmlOutputBuffer</H3
1325 CLASS="PROGRAMLISTING"
1326 >struct xmlOutputBuffer {
1328 xmlOutputWriteCallback writecallback;
1329 xmlOutputCloseCallback closecallback;
1331 xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
1333 xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */
1334 xmlBufferPtr conv; /* if encoder != NULL buffer for output */
1335 int written; /* total number of byte written */
1350 NAME="XMLCLEANUPINPUTCALLBACKS"
1352 >xmlCleanupInputCallbacks ()</H3
1361 CLASS="PROGRAMLISTING"
1362 >void xmlCleanupInputCallbacks (void);</PRE
1367 >clears the entire input callback table. this includes the
1379 NAME="XMLCLEANUPOUTPUTCALLBACKS"
1381 >xmlCleanupOutputCallbacks ()</H3
1390 CLASS="PROGRAMLISTING"
1391 >void xmlCleanupOutputCallbacks (void);</PRE
1396 >clears the entire output callback table. this includes the
1397 compiled-in I/O callbacks.</P
1408 NAME="XMLREGISTERDEFAULTINPUTCALLBACKS"
1410 >xmlRegisterDefaultInputCallbacks ()</H3
1419 CLASS="PROGRAMLISTING"
1420 >void xmlRegisterDefaultInputCallbacks
1426 >Registers the default compiled-in I/O handlers.</P
1437 NAME="XMLALLOCPARSERINPUTBUFFER"
1439 >xmlAllocParserInputBuffer ()</H3
1448 CLASS="PROGRAMLISTING"
1450 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1451 >xmlParserInputBufferPtr</A
1452 > xmlAllocParserInputBuffer
1454 HREF="libxml-encoding.html#XMLCHARENCODING"
1461 >Create a buffered parser input for progressive parsing</P
1465 CLASS="INFORMALTABLE"
1492 > the charset encoding if known</TD
1510 >the new parser input or NULL</TD
1525 NAME="XMLPARSERINPUTBUFFERCREATEFNAME"
1527 >xmlParserInputBufferCreateFname ()</H3
1536 CLASS="PROGRAMLISTING"
1538 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1539 >xmlParserInputBufferPtr</A
1540 > xmlParserInputBufferCreateFname
1543 HREF="libxml-encoding.html#XMLCHARENCODING"
1551 HREF="libxml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILENAME"
1552 >xmlParserInputBufferCreateFilename</A
1557 CLASS="INFORMALTABLE"
1584 > a C string containing the URI or filename</TD
1601 > the charset encoding if known</TD
1619 >the new parser input or NULL</TD
1634 NAME="XMLPARSERINPUTBUFFERCREATEFILENAME"
1636 >xmlParserInputBufferCreateFilename ()</H3
1645 CLASS="PROGRAMLISTING"
1647 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1648 >xmlParserInputBufferPtr</A
1649 > xmlParserInputBufferCreateFilename
1652 HREF="libxml-encoding.html#XMLCHARENCODING"
1659 >Create a buffered parser input for the progressive parsing of a file
1660 If filename is "-' then we use stdin as the input.
1661 Automatic support for ZLIB/Compress compressed document is provided
1662 by default if found at compile-time.
1663 Do an encoding check if enc == XML_CHAR_ENCODING_NONE</P
1667 CLASS="INFORMALTABLE"
1694 > a C string containing the URI or filename</TD
1711 > the charset encoding if known</TD
1729 >the new parser input or NULL</TD
1744 NAME="XMLPARSERINPUTBUFFERCREATEFILE"
1746 >xmlParserInputBufferCreateFile ()</H3
1755 CLASS="PROGRAMLISTING"
1757 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1758 >xmlParserInputBufferPtr</A
1759 > xmlParserInputBufferCreateFile
1765 HREF="libxml-encoding.html#XMLCHARENCODING"
1772 >Create a buffered parser input for the progressive parsing of a FILE *
1777 CLASS="INFORMALTABLE"
1821 > the charset encoding if known</TD
1839 >the new parser input or NULL</TD
1854 NAME="XMLPARSERINPUTBUFFERCREATEFD"
1856 >xmlParserInputBufferCreateFd ()</H3
1865 CLASS="PROGRAMLISTING"
1867 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1868 >xmlParserInputBufferPtr</A
1869 > xmlParserInputBufferCreateFd
1872 HREF="libxml-encoding.html#XMLCHARENCODING"
1879 >Create a buffered parser input for the progressive parsing for the input
1880 from a file descriptor</P
1884 CLASS="INFORMALTABLE"
1911 > a file descriptor number</TD
1928 > the charset encoding if known</TD
1946 >the new parser input or NULL</TD
1961 NAME="XMLPARSERINPUTBUFFERCREATEMEM"
1963 >xmlParserInputBufferCreateMem ()</H3
1972 CLASS="PROGRAMLISTING"
1974 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1975 >xmlParserInputBufferPtr</A
1976 > xmlParserInputBufferCreateMem
1980 HREF="libxml-encoding.html#XMLCHARENCODING"
1987 >Create a buffered parser input for the progressive parsing for the input
1988 from a memory area.</P
1992 CLASS="INFORMALTABLE"
2019 > the memory input</TD
2036 > the length of the memory block</TD
2053 > the charset encoding if known</TD
2071 >the new parser input or NULL</TD
2086 NAME="XMLPARSERINPUTBUFFERCREATEIO"
2088 >xmlParserInputBufferCreateIO ()</H3
2097 CLASS="PROGRAMLISTING"
2099 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
2100 >xmlParserInputBufferPtr</A
2101 > xmlParserInputBufferCreateIO
2103 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
2104 >xmlInputReadCallback</A
2107 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
2108 >xmlInputCloseCallback</A
2112 HREF="libxml-encoding.html#XMLCHARENCODING"
2119 >Create a buffered parser input for the progressive parsing for the input
2120 from an I/O handler</P
2124 CLASS="INFORMALTABLE"
2151 > an I/O read function</TD
2168 > an I/O close function</TD
2185 > an I/O handler</TD
2202 > the charset encoding if known</TD
2220 >the new parser input or NULL</TD
2235 NAME="XMLPARSERINPUTBUFFERREAD"
2237 >xmlParserInputBufferRead ()</H3
2246 CLASS="PROGRAMLISTING"
2247 >int xmlParserInputBufferRead (<A
2248 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
2249 >xmlParserInputBufferPtr</A
2256 >Refresh the content of the input buffer, the old data are considered
2258 This routine handle the I18N transcoding to internal UTF-8</P
2262 CLASS="INFORMALTABLE"
2289 > a buffered parser input</TD
2306 > indicative value of the amount of chars to read</TD
2324 >the number of chars read and stored in the buffer, or -1
2325 in case of error.</TD
2340 NAME="XMLPARSERINPUTBUFFERGROW"
2342 >xmlParserInputBufferGrow ()</H3
2351 CLASS="PROGRAMLISTING"
2352 >int xmlParserInputBufferGrow (<A
2353 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
2354 >xmlParserInputBufferPtr</A
2361 >Grow up the content of the input buffer, the old data are preserved
2362 This routine handle the I18N transcoding to internal UTF-8
2363 This routine is used when operating the parser in normal (pull) mode</P
2365 >TODO: one should be able to remove one extra copy by copying directly
2366 onto in->buffer or in->raw</P
2370 CLASS="INFORMALTABLE"
2397 > a buffered parser input</TD
2414 > indicative value of the amount of chars to read</TD
2432 >the number of chars read and stored in the buffer, or -1
2433 in case of error.</TD
2448 NAME="XMLPARSERINPUTBUFFERPUSH"
2450 >xmlParserInputBufferPush ()</H3
2459 CLASS="PROGRAMLISTING"
2460 >int xmlParserInputBufferPush (<A
2461 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
2462 >xmlParserInputBufferPtr</A
2465 const char *buf);</PRE
2470 >Push the content of the arry in the input buffer
2471 This routine handle the I18N transcoding to internal UTF-8
2472 This is used when operating the parser in progressive (push) mode.</P
2476 CLASS="INFORMALTABLE"
2503 > a buffered parser input</TD
2520 > the size in bytes of the array.</TD
2555 >the number of chars read and stored in the buffer, or -1
2556 in case of error.</TD
2571 NAME="XMLFREEPARSERINPUTBUFFER"
2573 >xmlFreeParserInputBuffer ()</H3
2582 CLASS="PROGRAMLISTING"
2583 >void xmlFreeParserInputBuffer (<A
2584 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
2585 >xmlParserInputBufferPtr</A
2591 >Free up the memory used by a buffered parser input</P
2595 CLASS="INFORMALTABLE"
2622 > a buffered parser input</TD
2637 NAME="XMLPARSERGETDIRECTORY"
2639 >xmlParserGetDirectory ()</H3
2648 CLASS="PROGRAMLISTING"
2649 >char* xmlParserGetDirectory (const char *filename);</PRE
2654 >lookup the directory for that file</P
2658 CLASS="INFORMALTABLE"
2685 > the path to a file</TD
2703 >a new allocated string containing the directory, or NULL.</TD
2718 NAME="XMLREGISTERINPUTCALLBACKS"
2720 >xmlRegisterInputCallbacks ()</H3
2729 CLASS="PROGRAMLISTING"
2730 >int xmlRegisterInputCallbacks (<A
2731 HREF="libxml-xmlio.html#XMLINPUTMATCHCALLBACK"
2732 >xmlInputMatchCallback</A
2735 HREF="libxml-xmlio.html#XMLINPUTOPENCALLBACK"
2736 >xmlInputOpenCallback</A
2739 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
2740 >xmlInputReadCallback</A
2743 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
2744 >xmlInputCloseCallback</A
2750 >Register a new set of I/O callback for handling parser input.</P
2754 CLASS="INFORMALTABLE"
2781 > the xmlInputMatchCallback</TD
2798 > the xmlInputOpenCallback</TD
2815 > the xmlInputReadCallback</TD
2832 > the xmlInputCloseCallback</TD
2850 >the registered handler number or -1 in case of error</TD
2865 NAME="XMLREGISTERDEFAULTOUTPUTCALLBACKS"
2867 >xmlRegisterDefaultOutputCallbacks ()</H3
2876 CLASS="PROGRAMLISTING"
2877 >void xmlRegisterDefaultOutputCallbacks
2883 >Registers the default compiled-in I/O handlers.</P
2894 NAME="XMLALLOCOUTPUTBUFFER"
2896 >xmlAllocOutputBuffer ()</H3
2905 CLASS="PROGRAMLISTING"
2907 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
2908 >xmlOutputBufferPtr</A
2909 > xmlAllocOutputBuffer (<A
2910 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
2911 >xmlCharEncodingHandlerPtr</A
2917 >Create a buffered parser output</P
2921 CLASS="INFORMALTABLE"
2948 > the encoding converter or NULL</TD
2966 >the new parser output or NULL</TD
2981 NAME="XMLOUTPUTBUFFERCREATEFILENAME"
2983 >xmlOutputBufferCreateFilename ()</H3
2992 CLASS="PROGRAMLISTING"
2994 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
2995 >xmlOutputBufferPtr</A
2996 > xmlOutputBufferCreateFilename
2999 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
3000 >xmlCharEncodingHandlerPtr</A
3002 int compression);</PRE
3007 >Create a buffered output for the progressive saving of a file
3008 If filename is "-' then we use stdout as the output.
3009 Automatic support for ZLIB/Compress compressed document is provided
3010 by default if found at compile-time.
3011 TODO: currently if compression is set, the library only support
3012 writing to a local file.</P
3016 CLASS="INFORMALTABLE"
3043 > a C string containing the URI or filename</TD
3060 > the encoding converter or NULL</TD
3077 > the compression ration (0 none, 9 max).</TD
3095 >the new output or NULL</TD
3110 NAME="XMLOUTPUTBUFFERCREATEFILE"
3112 >xmlOutputBufferCreateFile ()</H3
3121 CLASS="PROGRAMLISTING"
3123 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3124 >xmlOutputBufferPtr</A
3125 > xmlOutputBufferCreateFile
3131 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
3132 >xmlCharEncodingHandlerPtr</A
3138 >Create a buffered output for the progressive saving to a FILE *
3143 CLASS="INFORMALTABLE"
3187 > the encoding converter or NULL</TD
3205 >the new parser output or NULL</TD
3220 NAME="XMLOUTPUTBUFFERCREATEFD"
3222 >xmlOutputBufferCreateFd ()</H3
3231 CLASS="PROGRAMLISTING"
3233 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3234 >xmlOutputBufferPtr</A
3235 > xmlOutputBufferCreateFd (int fd,
3237 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
3238 >xmlCharEncodingHandlerPtr</A
3244 >Create a buffered output for the progressive saving
3245 to a file descriptor</P
3249 CLASS="INFORMALTABLE"
3276 > a file descriptor number</TD
3293 > the encoding converter or NULL</TD
3311 >the new parser output or NULL</TD
3326 NAME="XMLOUTPUTBUFFERCREATEIO"
3328 >xmlOutputBufferCreateIO ()</H3
3337 CLASS="PROGRAMLISTING"
3339 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3340 >xmlOutputBufferPtr</A
3341 > xmlOutputBufferCreateIO (<A
3342 HREF="libxml-xmlio.html#XMLOUTPUTWRITECALLBACK"
3343 >xmlOutputWriteCallback</A
3346 HREF="libxml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
3347 >xmlOutputCloseCallback</A
3351 HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
3352 >xmlCharEncodingHandlerPtr</A
3358 >Create a buffered output for the progressive saving
3359 to an I/O handler</P
3363 CLASS="INFORMALTABLE"
3390 > an I/O write function</TD
3407 > an I/O close function</TD
3424 > an I/O handler</TD
3441 > the charset encoding if known</TD
3459 >the new parser output or NULL</TD
3474 NAME="XMLOUTPUTBUFFERWRITE"
3476 >xmlOutputBufferWrite ()</H3
3485 CLASS="PROGRAMLISTING"
3486 >int xmlOutputBufferWrite (<A
3487 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3488 >xmlOutputBufferPtr</A
3491 const char *buf);</PRE
3496 >Write the content of the array in the output I/O buffer
3497 This routine handle the I18N transcoding from internal UTF-8
3498 The buffer is lossless, i.e. will store in case of partial
3499 or delayed writes.</P
3503 CLASS="INFORMALTABLE"
3530 > a buffered parser output</TD
3547 > the size in bytes of the array.</TD
3582 >the number of chars immediately written, or -1
3583 in case of error.</TD
3598 NAME="XMLOUTPUTBUFFERWRITESTRING"
3600 >xmlOutputBufferWriteString ()</H3
3609 CLASS="PROGRAMLISTING"
3610 >int xmlOutputBufferWriteString (<A
3611 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3612 >xmlOutputBufferPtr</A
3614 const char *str);</PRE
3619 >Write the content of the string in the output I/O buffer
3620 This routine handle the I18N transcoding from internal UTF-8
3621 The buffer is lossless, i.e. will store in case of partial
3622 or delayed writes.</P
3626 CLASS="INFORMALTABLE"
3653 > a buffered parser output</TD
3670 > a zero terminated C string</TD
3688 >the number of chars immediately written, or -1
3689 in case of error.</TD
3704 NAME="XMLOUTPUTBUFFERFLUSH"
3706 >xmlOutputBufferFlush ()</H3
3715 CLASS="PROGRAMLISTING"
3716 >int xmlOutputBufferFlush (<A
3717 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3718 >xmlOutputBufferPtr</A
3724 >flushes the output I/O channel</P
3728 CLASS="INFORMALTABLE"
3755 > a buffered output</TD
3773 >the number of byte written or -1 in case of error.</TD
3788 NAME="XMLOUTPUTBUFFERCLOSE"
3790 >xmlOutputBufferClose ()</H3
3799 CLASS="PROGRAMLISTING"
3800 >int xmlOutputBufferClose (<A
3801 HREF="libxml-tree.html#XMLOUTPUTBUFFERPTR"
3802 >xmlOutputBufferPtr</A
3808 >flushes and close the output I/O channel
3809 and free up all the associated resources</P
3813 CLASS="INFORMALTABLE"
3840 > a buffered output</TD
3858 >the number of byte written or -1 in case of error.</TD
3873 NAME="XMLREGISTEROUTPUTCALLBACKS"
3875 >xmlRegisterOutputCallbacks ()</H3
3884 CLASS="PROGRAMLISTING"
3885 >int xmlRegisterOutputCallbacks (<A
3886 HREF="libxml-xmlio.html#XMLOUTPUTMATCHCALLBACK"
3887 >xmlOutputMatchCallback</A
3890 HREF="libxml-xmlio.html#XMLOUTPUTOPENCALLBACK"
3891 >xmlOutputOpenCallback</A
3894 HREF="libxml-xmlio.html#XMLOUTPUTWRITECALLBACK"
3895 >xmlOutputWriteCallback</A
3898 HREF="libxml-xmlio.html#XMLOUTPUTCLOSECALLBACK"
3899 >xmlOutputCloseCallback</A
3905 >Register a new set of I/O callback for handling output.</P
3909 CLASS="INFORMALTABLE"
3936 > the xmlOutputMatchCallback</TD
3953 > the xmlOutputOpenCallback</TD
3970 > the xmlOutputWriteCallback</TD
3987 > the xmlOutputCloseCallback</TD
4005 >the registered handler number or -1 in case of error</TD
4020 NAME="XMLIOHTTPOPENW"
4022 >xmlIOHTTPOpenW ()</H3
4031 CLASS="PROGRAMLISTING"
4032 >void* xmlIOHTTPOpenW (const char *post_uri,
4033 int compression);</PRE
4038 >Open a temporary buffer to collect the document for a subsequent HTTP POST
4039 request. Non-static as is called from the output buffer creation routine.</P
4043 CLASS="INFORMALTABLE"
4070 > The destination URI for the document</TD
4087 > The compression desired for the document.</TD
4102 NAME="XMLREGISTERHTTPPOSTCALLBACKS"
4104 >xmlRegisterHTTPPostCallbacks ()</H3
4113 CLASS="PROGRAMLISTING"
4114 >void xmlRegisterHTTPPostCallbacks (void);</PRE
4119 >By default, libxml submits HTTP output requests using the "PUT" method.
4120 Calling this method changes the HTTP output method to use the "POST"
4132 NAME="XMLNONETEXTERNALENTITYLOADER"
4134 >xmlNoNetExternalEntityLoader ()</H3
4143 CLASS="PROGRAMLISTING"
4145 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
4146 >xmlParserInputPtr</A
4147 > xmlNoNetExternalEntityLoader
4151 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
4152 >xmlParserCtxtPtr</A
4158 >A specific entity loader disabling network accesses, though still
4159 allowing local catalog accesses for resolution.</P
4163 CLASS="INFORMALTABLE"
4190 > the URL for the entity to load</TD
4207 > the System ID for the entity to load</TD
4224 > the context in which the entity is called or NULL</TD
4242 >a new allocated xmlParserInputPtr, or NULL.</TD
4257 NAME="XMLNORMALIZEWINDOWSPATH"
4259 >xmlNormalizeWindowsPath ()</H3
4268 CLASS="PROGRAMLISTING"
4270 HREF="libxml-tree.html#XMLCHAR"
4272 >* xmlNormalizeWindowsPath (const <A
4273 HREF="libxml-tree.html#XMLCHAR"
4280 >Normalize a Windows path to make an URL from it</P
4284 CLASS="INFORMALTABLE"
4311 > a windows path like "C:/foo/bar"</TD
4329 >a new URI which must be freed by the caller or NULL
4330 in case of error</TD
4345 NAME="XMLCHECKFILENAME"
4347 >xmlCheckFilename ()</H3
4356 CLASS="PROGRAMLISTING"
4357 >int xmlCheckFilename (const char *path);</PRE
4362 >function checks to see if <TT
4368 (file, socket...) for XML.</P
4370 >if stat is not available on the target machine,
4371 returns 1. if stat fails, returns 0 (if calling
4372 stat on the filename fails, it can't be right).
4373 if stat succeeds and the file is a directory,</P
4377 CLASS="INFORMALTABLE"
4404 > the path to check</TD
4422 >2. otherwise returns 1.</TD
4439 >xmlFileMatch ()</H3
4448 CLASS="PROGRAMLISTING"
4449 >int xmlFileMatch (const char *filename);</PRE
4454 >input from FILE *</P
4458 CLASS="INFORMALTABLE"
4485 > the URI for matching</TD
4503 >1 if matches, 0 otherwise</TD
4529 CLASS="PROGRAMLISTING"
4530 >void* xmlFileOpen (const char *filename);</PRE
4535 >input from FILE *, supports compressed input
4541 > is " " then the standard input is used</P
4545 CLASS="INFORMALTABLE"
4572 > the URI for matching</TD
4598 CLASS="PROGRAMLISTING"
4599 >int xmlFileRead (void *context,
4616 > from the I/O channel.</P
4620 CLASS="INFORMALTABLE"
4647 > the I/O context</TD
4664 > where to drop data</TD
4681 > number of bytes to write</TD
4699 >the number of bytes written</TD
4716 >xmlFileClose ()</H3
4725 CLASS="PROGRAMLISTING"
4726 >int xmlFileClose (void *context);</PRE
4731 >Close an I/O channel</P
4735 CLASS="INFORMALTABLE"
4762 > the I/O context</TD
4795 NAME="XMLIOHTTPMATCH"
4797 >xmlIOHTTPMatch ()</H3
4806 CLASS="PROGRAMLISTING"
4807 >int xmlIOHTTPMatch (const char *filename);</PRE
4812 >check if the URI matches an HTTP one</P
4816 CLASS="INFORMALTABLE"
4843 > the URI for matching</TD
4861 >1 if matches, 0 otherwise</TD
4876 NAME="XMLIOHTTPOPEN"
4878 >xmlIOHTTPOpen ()</H3
4887 CLASS="PROGRAMLISTING"
4888 >void* xmlIOHTTPOpen (const char *filename);</PRE
4893 >open an HTTP I/O channel</P
4897 CLASS="INFORMALTABLE"
4924 > the URI for matching</TD
4939 NAME="XMLIOHTTPREAD"
4941 >xmlIOHTTPRead ()</H3
4950 CLASS="PROGRAMLISTING"
4951 >int xmlIOHTTPRead (void *context,
4968 > from the I/O channel.</P
4972 CLASS="INFORMALTABLE"
4999 > the I/O context</TD
5016 > where to drop data</TD
5033 > number of bytes to write</TD
5051 >the number of bytes written</TD
5066 NAME="XMLIOHTTPCLOSE"
5068 >xmlIOHTTPClose ()</H3
5077 CLASS="PROGRAMLISTING"
5078 >int xmlIOHTTPClose (void *context);</PRE
5083 >Close an HTTP I/O channel</P
5087 CLASS="INFORMALTABLE"
5114 > the I/O context</TD
5147 NAME="XMLIOFTPMATCH"
5149 >xmlIOFTPMatch ()</H3
5158 CLASS="PROGRAMLISTING"
5159 >int xmlIOFTPMatch (const char *filename);</PRE
5164 >check if the URI matches an FTP one</P
5168 CLASS="INFORMALTABLE"
5195 > the URI for matching</TD
5213 >1 if matches, 0 otherwise</TD
5230 >xmlIOFTPOpen ()</H3
5239 CLASS="PROGRAMLISTING"
5240 >void* xmlIOFTPOpen (const char *filename);</PRE
5245 >open an FTP I/O channel</P
5249 CLASS="INFORMALTABLE"
5276 > the URI for matching</TD
5293 >xmlIOFTPRead ()</H3
5302 CLASS="PROGRAMLISTING"
5303 >int xmlIOFTPRead (void *context,
5320 > from the I/O channel.</P
5324 CLASS="INFORMALTABLE"
5351 > the I/O context</TD
5368 > where to drop data</TD
5385 > number of bytes to write</TD
5403 >the number of bytes written</TD
5418 NAME="XMLIOFTPCLOSE"
5420 >xmlIOFTPClose ()</H3
5429 CLASS="PROGRAMLISTING"
5430 >int xmlIOFTPClose (void *context);</PRE
5435 >Close an FTP I/O channel</P
5439 CLASS="INFORMALTABLE"
5466 > the I/O context</TD
5496 CLEAR="all"><BR><TABLE
5508 HREF="libxml-nanoftp.html"
5513 ><<< Previous Page</B
5546 HREF="libxml-lib.html"
5562 HREF="libxml-catalog.html"
5567 >Next Page >>></B