IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
</pre><p>Macro. A <ahref="libxml2-SAX.html#comment">comment</a> in a HTML document is really implemented the same way as a <ahref="libxml2-SAX.html#comment">comment</a> in an XML document.</p>
</pre><p>Macro. An entity <ahref="libxml2-SAX.html#reference">reference</a> in a HTML document is really implemented the same way as an entity <ahref="libxml2-SAX.html#reference">reference</a> in an XML document.</p>
</pre><p>Dump an HTML document to an open FILE.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>f</tt></i>:</span></td><td>the FILE*</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML document in memory and return the <ahref="libxml2-xmlstring.html#xmlChar">xmlChar</a> * and it's size. It's up to the caller to free the memory.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>mem</tt></i>:</span></td><td>OUT: the memory pointer</td></tr><tr><td><spanclass="term"><i><tt>size</tt></i>:</span></td><td>OUT: the memory length</td></tr></tbody></table></div></div>
<divclass="refsect2"lang="en"><h3><aname="htmlDocDumpMemoryFormat"/>htmlDocDumpMemoryFormat ()</h3><preclass="programlisting">void htmlDocDumpMemoryFormat (<ahref="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> cur, <br/><ahref="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** mem, <br/> int * size, <br/> int format)<br/>
</pre><p>Dump an HTML document in memory and return the <ahref="libxml2-xmlstring.html#xmlChar">xmlChar</a> * and it's size. It's up to the caller to free the memory.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>mem</tt></i>:</span></td><td>OUT: the memory pointer</td></tr><tr><td><spanclass="term"><i><tt>size</tt></i>:</span></td><td>OUT: the memory length</td></tr><tr><td><spanclass="term"><i><tt>format</tt></i>:</span></td><td>should formatting spaces been added</td></tr></tbody></table></div></div>
</pre><p>Encoding definition lookup in the Meta tags</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the current encoding as flagged in the HTML source</td></tr></tbody></table></div></div>
</pre><p>Determine if a given <ahref="libxml2-SAX.html#attribute">attribute</a> is a boolean attribute.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the name of the <ahref="libxml2-SAX.html#attribute">attribute</a> to check</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>false if the <ahref="libxml2-SAX.html#attribute">attribute</a> is not boolean, true otherwise.</td></tr></tbody></table></div></div>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>URI</tt></i>:</span></td><td>URI for the dtd, or NULL</td></tr><tr><td><spanclass="term"><i><tt>ExternalID</tt></i>:</span></td><td>the external ID of the DTD, or NULL</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>a new document</td></tr></tbody></table></div></div>
</pre><p>Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>URI</tt></i>:</span></td><td>URI for the dtd, or NULL</td></tr><tr><td><spanclass="term"><i><tt>ExternalID</tt></i>:</span></td><td>the external ID of the DTD, or NULL</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>a new document, do not initialize the DTD if not provided</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>buf</tt></i>:</span></td><td>the HTML buffer output</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the current node</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of error</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>out</tt></i>:</span></td><td>the FILE pointer</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the current node</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the document encoding</td></tr><tr><td><spanclass="term"><i><tt>format</tt></i>:</span></td><td>should formatting spaces been added</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML node, recursive behaviour,children are printed too.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>buf</tt></i>:</span></td><td>the HTML buffer output</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the current node</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the encoding string</td></tr><tr><td><spanclass="term"><i><tt>format</tt></i>:</span></td><td>should formatting spaces been added</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>buf</tt></i>:</span></td><td>the HTML buffer output</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the current node</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the encoding string</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML document to a file. If @filename is "-" the stdout file is used.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>filename</tt></i>:</span></td><td>the filename (or URL)</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML document to a file using a given encoding and formatting returns/spaces are added.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>filename</tt></i>:</span></td><td>the filename</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the document encoding</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div></div>
</pre><p>Dump an HTML document to a file using a given encoding.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>filename</tt></i>:</span></td><td>the filename</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the document encoding</td></tr><tr><td><spanclass="term"><i><tt>format</tt></i>:</span></td><td>should formatting spaces been added</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div></div>
</pre><p>Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>encoding</tt></i>:</span></td><td>the encoding string</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div></div>