| <HTML |
| ><HEAD |
| ><TITLE |
| >xmlIO</TITLE |
| ><META |
| NAME="GENERATOR" |
| CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK |
| REL="HOME" |
| TITLE="Gnome XML Library Reference Manual" |
| HREF="book1.html"><LINK |
| REL="UP" |
| TITLE="Libxml Library Reference" |
| HREF="libxml-lib.html"><LINK |
| REL="PREVIOUS" |
| TITLE="nanoftp" |
| HREF="gnome-xml-nanoftp.html"><LINK |
| REL="NEXT" |
| TITLE="parserInternals" |
| HREF="gnome-xml-parserinternals.html"></HEAD |
| ><BODY |
| BGCOLOR="#FFFFFF" |
| TEXT="#000000" |
| ><DIV |
| CLASS="NAVHEADER" |
| ><TABLE |
| WIDTH="100%" |
| BORDER="0" |
| BGCOLOR="#000000" |
| CELLPADDING="1" |
| CELLSPACING="0" |
| ><TR |
| ><TH |
| COLSPAN="4" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="5" |
| >Gnome XML Library Reference Manual</FONT |
| ></TH |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="left" |
| ><A |
| HREF="gnome-xml-nanoftp.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><<< Previous Page</B |
| ></FONT |
| ></A |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#0000C0" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="book1.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Home</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#00C000" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="libxml-lib.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Up</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="right" |
| ><A |
| HREF="gnome-xml-parserinternals.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Next Page >>></B |
| ></FONT |
| ></A |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ><H1 |
| >xmlIO</H1 |
| ><DIV |
| CLASS="REFNAMEDIV" |
| ><A |
| NAME="AEN13843" |
| ></A |
| ><H2 |
| >Name</H2 |
| >xmlIO — </DIV |
| ><DIV |
| CLASS="REFSYNOPSISDIV" |
| ><A |
| NAME="AEN13846" |
| ></A |
| ><H2 |
| >Synopsis</H2 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="SYNOPSIS" |
| > |
| |
| int (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK" |
| >*xmlInputMatchCallback</A |
| >) (char const *filename); |
| void* (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK" |
| >*xmlInputOpenCallback</A |
| >) (char const *filename); |
| int (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK" |
| >*xmlInputReadCallback</A |
| >) (void *context, |
| char *buffer, |
| int len); |
| void (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK" |
| >*xmlInputCloseCallback</A |
| >) (void *context); |
| struct <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFER" |
| >xmlParserInputBuffer</A |
| >; |
| typedef <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| >; |
| int (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK" |
| >*xmlOutputMatchCallback</A |
| >) (char const *filename); |
| void* (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK" |
| >*xmlOutputOpenCallback</A |
| >) (char const *filename); |
| int (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK" |
| >*xmlOutputWriteCallback</A |
| >) (void *context, |
| const char *buffer, |
| int len); |
| void (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK" |
| >*xmlOutputCloseCallback</A |
| >) (void *context); |
| struct <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER" |
| >xmlOutputBuffer</A |
| >; |
| typedef <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| >; |
| void <A |
| HREF="gnome-xml-xmlio.html#XMLREGISTERDEFAULTINPUTCALLBACKS" |
| >xmlRegisterDefaultInputCallbacks</A |
| > |
| (void); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLALLOCPARSERINPUTBUFFER" |
| >xmlAllocParserInputBuffer</A |
| > |
| (<A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILENAME" |
| >xmlParserInputBufferCreateFilename</A |
| > |
| (const char *URI, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFILE" |
| >xmlParserInputBufferCreateFile</A |
| > |
| (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *file, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEFD" |
| >xmlParserInputBufferCreateFd</A |
| > |
| (int fd, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEMEM" |
| >xmlParserInputBufferCreateMem</A |
| > |
| (const char *mem, |
| int size, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERCREATEIO" |
| >xmlParserInputBufferCreateIO</A |
| > |
| (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK" |
| >xmlInputReadCallback</A |
| > ioread, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK" |
| >xmlInputCloseCallback</A |
| > ioclose, |
| void *ioctx, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERREAD" |
| >xmlParserInputBufferRead</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERGROW" |
| >xmlParserInputBufferGrow</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPUSH" |
| >xmlParserInputBufferPush</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len, |
| const char *buf); |
| void <A |
| HREF="gnome-xml-xmlio.html#XMLFREEPARSERINPUTBUFFER" |
| >xmlFreeParserInputBuffer</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in); |
| char* <A |
| HREF="gnome-xml-xmlio.html#XMLPARSERGETDIRECTORY" |
| >xmlParserGetDirectory</A |
| > (const char *filename); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLREGISTERINPUTCALLBACKS" |
| >xmlRegisterInputCallbacks</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK" |
| >xmlInputMatchCallback</A |
| > match, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK" |
| >xmlInputOpenCallback</A |
| > open, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK" |
| >xmlInputReadCallback</A |
| > read, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK" |
| >xmlInputCloseCallback</A |
| > close); |
| void <A |
| HREF="gnome-xml-xmlio.html#XMLREGISTERDEFAULTOUTPUTCALLBACKS" |
| >xmlRegisterDefaultOutputCallbacks</A |
| > |
| (void); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLALLOCOUTPUTBUFFER" |
| >xmlAllocOutputBuffer</A |
| > (<A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFILENAME" |
| >xmlOutputBufferCreateFilename</A |
| > |
| (const char *URI, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder, |
| int compression); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFILE" |
| >xmlOutputBufferCreateFile</A |
| > |
| (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *file, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEFD" |
| >xmlOutputBufferCreateFd</A |
| > (int fd, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder); |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCREATEIO" |
| >xmlOutputBufferCreateIO</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK" |
| >xmlOutputWriteCallback</A |
| > iowrite, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK" |
| >xmlOutputCloseCallback</A |
| > ioclose, |
| void *ioctx, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERWRITE" |
| >xmlOutputBufferWrite</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out, |
| int len, |
| const char *buf); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERWRITESTRING" |
| >xmlOutputBufferWriteString</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out, |
| const char *str); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERFLUSH" |
| >xmlOutputBufferFlush</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERCLOSE" |
| >xmlOutputBufferClose</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLREGISTEROUTPUTCALLBACKS" |
| >xmlRegisterOutputCallbacks</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK" |
| >xmlOutputMatchCallback</A |
| > match, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK" |
| >xmlOutputOpenCallback</A |
| > open, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK" |
| >xmlOutputWriteCallback</A |
| > write, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK" |
| >xmlOutputCloseCallback</A |
| > close); |
| int <A |
| HREF="gnome-xml-xmlio.html#XMLSAVEFILETO" |
| >xmlSaveFileTo</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER" |
| >xmlOutputBuffer</A |
| > *buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| const char *encoding); |
| void <A |
| HREF="gnome-xml-xmlio.html#XMLNODEDUMPOUTPUT" |
| >xmlNodeDumpOutput</A |
| > (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur, |
| int level, |
| int format, |
| const char *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ><DIV |
| CLASS="REFSECT1" |
| ><A |
| NAME="AEN13936" |
| ></A |
| ><H2 |
| >Description</H2 |
| ><P |
| ></P |
| ></DIV |
| ><DIV |
| CLASS="REFSECT1" |
| ><A |
| NAME="AEN13939" |
| ></A |
| ><H2 |
| >Details</H2 |
| ><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN13941" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLINPUTMATCHCALLBACK" |
| ></A |
| >xmlInputMatchCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int (*xmlInputMatchCallback) (char const *filename);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN13959" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLINPUTOPENCALLBACK" |
| ></A |
| >xmlInputOpenCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void* (*xmlInputOpenCallback) (char const *filename);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN13973" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLINPUTREADCALLBACK" |
| ></A |
| >xmlInputReadCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int (*xmlInputReadCallback) (void *context, |
| char *buffer, |
| int len);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >context</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buffer</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN13999" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLINPUTCLOSECALLBACK" |
| ></A |
| >xmlInputCloseCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void (*xmlInputCloseCallback) (void *context);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >context</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14013" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFER" |
| ></A |
| >struct xmlParserInputBuffer</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >struct xmlParserInputBuffer { |
| void* context; |
| xmlInputReadCallback readcallback; |
| xmlInputCloseCallback closecallback; |
| |
| xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */ |
| |
| xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */ |
| xmlBufferPtr raw; /* if encoder != NULL buffer for raw input */ |
| };</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14018" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERPTR" |
| ></A |
| >xmlParserInputBufferPtr</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >typedef xmlParserInputBuffer *xmlParserInputBufferPtr;</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14023" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTMATCHCALLBACK" |
| ></A |
| >xmlOutputMatchCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int (*xmlOutputMatchCallback) (char const *filename);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14041" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTOPENCALLBACK" |
| ></A |
| >xmlOutputOpenCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void* (*xmlOutputOpenCallback) (char const *filename);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14055" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTWRITECALLBACK" |
| ></A |
| >xmlOutputWriteCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int (*xmlOutputWriteCallback) (void *context, |
| const char *buffer, |
| int len);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >context</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buffer</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14081" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTCLOSECALLBACK" |
| ></A |
| >xmlOutputCloseCallback ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void (*xmlOutputCloseCallback) (void *context);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >context</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14095" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFER" |
| ></A |
| >struct xmlOutputBuffer</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >struct xmlOutputBuffer { |
| void* context; |
| xmlOutputWriteCallback writecallback; |
| xmlOutputCloseCallback closecallback; |
| |
| xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */ |
| |
| xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */ |
| xmlBufferPtr conv; /* if encoder != NULL buffer for output */ |
| int written; /* total number of byte written */ |
| };</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14100" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERPTR" |
| ></A |
| >xmlOutputBufferPtr</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >typedef xmlOutputBuffer *xmlOutputBufferPtr;</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14105" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLREGISTERDEFAULTINPUTCALLBACKS" |
| ></A |
| >xmlRegisterDefaultInputCallbacks ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void xmlRegisterDefaultInputCallbacks |
| (void);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Registers the default compiled-in I/O handlers.</P |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14111" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLALLOCPARSERINPUTBUFFER" |
| ></A |
| >xmlAllocParserInputBuffer ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlAllocParserInputBuffer |
| (<A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for progressive parsing</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14132" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERCREATEFILENAME" |
| ></A |
| >xmlParserInputBufferCreateFilename ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlParserInputBufferCreateFilename |
| (const char *URI, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for the progressive parsing of a file |
| If filename is "-' then we use stdin as the input. |
| Automatic support for ZLIB/Compress compressed document is provided |
| by default if found at compile-time. |
| Do an encoding check if enc == XML_CHAR_ENCODING_NONE</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >URI</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a C string containing the URI or filename</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14157" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERCREATEFILE" |
| ></A |
| >xmlParserInputBufferCreateFile ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlParserInputBufferCreateFile |
| (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *file, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for the progressive parsing of a FILE * |
| buffered C I/O</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >file</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a FILE* </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14183" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERCREATEFD" |
| ></A |
| >xmlParserInputBufferCreateFd ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlParserInputBufferCreateFd |
| (int fd, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for the progressive parsing for the input |
| from a file descriptor</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >fd</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a file descriptor number</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14208" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERCREATEMEM" |
| ></A |
| >xmlParserInputBufferCreateMem ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlParserInputBufferCreateMem |
| (const char *mem, |
| int size, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for the progressive parsing for the input |
| from a file descriptor</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >mem</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the memory input</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >size</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the length of the memory block</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14237" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERCREATEIO" |
| ></A |
| >xmlParserInputBufferCreateIO ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > xmlParserInputBufferCreateIO |
| (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK" |
| >xmlInputReadCallback</A |
| > ioread, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK" |
| >xmlInputCloseCallback</A |
| > ioclose, |
| void *ioctx, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| >xmlCharEncoding</A |
| > enc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser input for the progressive parsing for the input |
| from an I/O handler</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ioread</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O read function</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ioclose</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O close function</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ioctx</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O handler</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >enc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the charset encoding if known</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser input or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14272" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERREAD" |
| ></A |
| >xmlParserInputBufferRead ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlParserInputBufferRead (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Refresh the content of the input buffer, the old data are considered |
| consumed |
| This routine handle the I18N transcoding to internal UTF-8</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >in</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser input</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > indicative value of the amount of chars to read</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of chars read and stored in the buffer, or -1 |
| in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14296" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERGROW" |
| ></A |
| >xmlParserInputBufferGrow ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlParserInputBufferGrow (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Grow up the content of the input buffer, the old data are preserved |
| This routine handle the I18N transcoding to internal UTF-8 |
| This routine is used when operating the parser in normal (pull) mode</P |
| ><P |
| >TODO: one should be able to remove one extra copy by copying directy |
| onto in->buffer or in->raw</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >in</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser input</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > indicative value of the amount of chars to read</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of chars read and stored in the buffer, or -1 |
| in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14321" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERINPUTBUFFERPUSH" |
| ></A |
| >xmlParserInputBufferPush ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlParserInputBufferPush (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in, |
| int len, |
| const char *buf);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Push the content of the arry in the input buffer |
| This routine handle the I18N transcoding to internal UTF-8 |
| This is used when operating the parser in progressive (push) mode.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >in</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser input</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the size in bytes of the array.</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buf</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an char array</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of chars read and stored in the buffer, or -1 |
| in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14349" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLFREEPARSERINPUTBUFFER" |
| ></A |
| >xmlFreeParserInputBuffer ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void xmlFreeParserInputBuffer (<A |
| HREF="gnome-xml-xmlio.html#XMLPARSERINPUTBUFFERPTR" |
| >xmlParserInputBufferPtr</A |
| > in);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Free up the memory used by a buffered parser input</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >in</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser input</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14365" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLPARSERGETDIRECTORY" |
| ></A |
| >xmlParserGetDirectory ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >char* xmlParserGetDirectory (const char *filename);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14383" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLREGISTERINPUTCALLBACKS" |
| ></A |
| >xmlRegisterInputCallbacks ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlRegisterInputCallbacks (<A |
| HREF="gnome-xml-xmlio.html#XMLINPUTMATCHCALLBACK" |
| >xmlInputMatchCallback</A |
| > match, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTOPENCALLBACK" |
| >xmlInputOpenCallback</A |
| > open, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTREADCALLBACK" |
| >xmlInputReadCallback</A |
| > read, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLINPUTCLOSECALLBACK" |
| >xmlInputCloseCallback</A |
| > close);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Register a new set of I/O callback for handling parser input.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >match</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlInputMatchCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >open</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlInputOpenCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >read</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlInputReadCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >close</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlInputCloseCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the registered handler number or -1 in case of error</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14418" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLREGISTERDEFAULTOUTPUTCALLBACKS" |
| ></A |
| >xmlRegisterDefaultOutputCallbacks ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void xmlRegisterDefaultOutputCallbacks |
| (void);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Registers the default compiled-in I/O handlers.</P |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14424" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLALLOCOUTPUTBUFFER" |
| ></A |
| >xmlAllocOutputBuffer ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > xmlAllocOutputBuffer (<A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered parser output</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoder</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding converter or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser output or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14445" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERCREATEFILENAME" |
| ></A |
| >xmlOutputBufferCreateFilename ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > xmlOutputBufferCreateFilename |
| (const char *URI, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder, |
| int compression);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered output for the progressive saving of a file |
| If filename is "-' then we use stdout as the output. |
| Automatic support for ZLIB/Compress compressed document is provided |
| by default if found at compile-time. |
| TODO: currently if compression is set, the library only support |
| writing to a local file.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >URI</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a C string containing the URI or filename</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoder</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding converter or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >compression</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the compression ration (0 none, 9 max).</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new output or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14474" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERCREATEFILE" |
| ></A |
| >xmlOutputBufferCreateFile ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > xmlOutputBufferCreateFile |
| (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *file, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered output for the progressive saving to a FILE * |
| buffered C I/O</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >file</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a FILE* </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoder</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding converter or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser output or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14500" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERCREATEFD" |
| ></A |
| >xmlOutputBufferCreateFd ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > xmlOutputBufferCreateFd (int fd, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered output for the progressive saving |
| to a file descriptor</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >fd</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a file descriptor number</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoder</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding converter or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser output or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14525" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERCREATEIO" |
| ></A |
| >xmlOutputBufferCreateIO ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > xmlOutputBufferCreateIO (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK" |
| >xmlOutputWriteCallback</A |
| > iowrite, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK" |
| >xmlOutputCloseCallback</A |
| > ioclose, |
| void *ioctx, |
| <A |
| HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| >xmlCharEncodingHandlerPtr</A |
| > encoder);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Create a buffered output for the progressive saving |
| to an I/O handler</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >iowrite</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O write function</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ioclose</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O close function</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ioctx</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an I/O handler</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoder</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the new parser output or NULL</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14560" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERWRITE" |
| ></A |
| >xmlOutputBufferWrite ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlOutputBufferWrite (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out, |
| int len, |
| const char *buf);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Write the content of the array in the output I/O buffer |
| This routine handle the I18N transcoding from internal UTF-8 |
| The buffer is lossless, i.e. will store in case of partial |
| or delayed writes.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >out</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >len</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the size in bytes of the array.</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buf</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an char array</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of chars immediately written, or -1 |
| in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14588" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERWRITESTRING" |
| ></A |
| >xmlOutputBufferWriteString ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlOutputBufferWriteString (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out, |
| const char *str);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Write the content of the string in the output I/O buffer |
| This routine handle the I18N transcoding from internal UTF-8 |
| The buffer is lossless, i.e. will store in case of partial |
| or delayed writes.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >out</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered parser output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >str</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a zero terminated C string</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of chars immediately written, or -1 |
| in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14612" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERFLUSH" |
| ></A |
| >xmlOutputBufferFlush ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlOutputBufferFlush (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >flushes the output I/O channel</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >out</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of byte written or -1 in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14632" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLOUTPUTBUFFERCLOSE" |
| ></A |
| >xmlOutputBufferClose ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlOutputBufferClose (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > out);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >flushes and close the output I/O channel |
| and free up all the associated resources</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >out</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > a buffered output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the number of byte written or -1 in case of error.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14652" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLREGISTEROUTPUTCALLBACKS" |
| ></A |
| >xmlRegisterOutputCallbacks ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlRegisterOutputCallbacks (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTMATCHCALLBACK" |
| >xmlOutputMatchCallback</A |
| > match, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTOPENCALLBACK" |
| >xmlOutputOpenCallback</A |
| > open, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTWRITECALLBACK" |
| >xmlOutputWriteCallback</A |
| > write, |
| <A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTCLOSECALLBACK" |
| >xmlOutputCloseCallback</A |
| > close);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Register a new set of I/O callback for handling output.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >match</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlOutputMatchCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >open</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlOutputOpenCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >write</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlOutputWriteCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >close</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the xmlOutputCloseCallback</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the registered handler number or -1 in case of error</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14687" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLSAVEFILETO" |
| ></A |
| >xmlSaveFileTo ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int xmlSaveFileTo (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFER" |
| >xmlOutputBuffer</A |
| > *buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| const char *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an XML document to an I/O buffer.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buf</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an output I/O buffer</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoding</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding if any assuming the i/O layer handles the trancoding</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the number of byte written or -1 in case of failure.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN14716" |
| ></A |
| ><H3 |
| ><A |
| NAME="XMLNODEDUMPOUTPUT" |
| ></A |
| >xmlNodeDumpOutput ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void xmlNodeDumpOutput (<A |
| HREF="gnome-xml-xmlio.html#XMLOUTPUTBUFFERPTR" |
| >xmlOutputBufferPtr</A |
| > buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur, |
| int level, |
| int format, |
| const char *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an XML node, recursive behaviour,children are printed too.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buf</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the XML buffer output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >doc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the current node</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >level</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the imbrication level for indenting</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >format</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > is formatting allowed</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoding</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > an optional encoding string</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ></DIV |
| ><DIV |
| CLASS="NAVFOOTER" |
| ><BR |
| CLEAR="all"><BR><TABLE |
| WIDTH="100%" |
| BORDER="0" |
| BGCOLOR="#000000" |
| CELLPADDING="1" |
| CELLSPACING="0" |
| ><TR |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="left" |
| ><A |
| HREF="gnome-xml-nanoftp.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><<< Previous Page</B |
| ></FONT |
| ></A |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#0000C0" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="book1.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Home</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#00C000" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="libxml-lib.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Up</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="right" |
| ><A |
| HREF="gnome-xml-parserinternals.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Next Page >>></B |
| ></FONT |
| ></A |
| ></TD |
| ></TR |
| ><TR |
| ><TD |
| COLSPAN="2" |
| ALIGN="left" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >nanoftp</B |
| ></FONT |
| ></TD |
| ><TD |
| COLSPAN="2" |
| ALIGN="right" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >parserInternals</B |
| ></FONT |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ></BODY |
| ></HTML |
| > |