mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
improve the *Recover* functions documentation Daniel
* parser.c: improve the *Recover* functions documentation Daniel svn path=/trunk/; revision=3731
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Fri Apr 4 18:09:50 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parser.c: improve the *Recover* functions documentation
|
||||||
|
|
||||||
Thu Apr 3 14:57:15 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
Thu Apr 3 14:57:15 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: patch from Mark Rowe fixing BOM or encoding detection
|
* parser.c: patch from Mark Rowe fixing BOM or encoding detection
|
||||||
|
|||||||
26
parser.c
26
parser.c
@@ -12285,13 +12285,14 @@ xmlParseInNodeContext(xmlNodePtr node, const char *data, int datalen,
|
|||||||
*
|
*
|
||||||
* Returns 0 if the chunk is well balanced, -1 in case of args problem and
|
* Returns 0 if the chunk is well balanced, -1 in case of args problem and
|
||||||
* the parser error code otherwise
|
* the parser error code otherwise
|
||||||
*
|
*
|
||||||
* In case recover is set to 1, the nodelist will not be empty even if
|
* In case recover is set to 1, the nodelist will not be empty even if
|
||||||
* the parsed chunk is not well balanced.
|
* the parsed chunk is not well balanced, assuming the parsing succeeded to
|
||||||
|
* some extent.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
||||||
void *user_data, int depth, const xmlChar *string, xmlNodePtr *lst,
|
void *user_data, int depth, const xmlChar *string, xmlNodePtr *lst,
|
||||||
int recover) {
|
int recover) {
|
||||||
xmlParserCtxtPtr ctxt;
|
xmlParserCtxtPtr ctxt;
|
||||||
xmlDocPtr newDoc;
|
xmlDocPtr newDoc;
|
||||||
@@ -12714,9 +12715,10 @@ xmlSAXParseFile(xmlSAXHandlerPtr sax, const char *filename,
|
|||||||
* @cur: a pointer to an array of xmlChar
|
* @cur: a pointer to an array of xmlChar
|
||||||
*
|
*
|
||||||
* parse an XML in-memory document and build a tree.
|
* parse an XML in-memory document and build a tree.
|
||||||
* In the case the document is not Well Formed, a tree is built anyway
|
* In the case the document is not Well Formed, a attempt to build a
|
||||||
*
|
* tree is tried anyway
|
||||||
* Returns the resulting document tree
|
*
|
||||||
|
* Returns the resulting document tree or NULL in case of failure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
xmlDocPtr
|
xmlDocPtr
|
||||||
@@ -12746,9 +12748,10 @@ xmlParseFile(const char *filename) {
|
|||||||
*
|
*
|
||||||
* parse an XML file and build a tree. Automatic support for ZLIB/Compress
|
* parse an XML file and build a tree. Automatic support for ZLIB/Compress
|
||||||
* compressed document is provided by default if found at compile-time.
|
* compressed document is provided by default if found at compile-time.
|
||||||
* In the case the document is not Well Formed, a tree is built anyway
|
* In the case the document is not Well Formed, it attempts to build
|
||||||
|
* a tree anyway
|
||||||
*
|
*
|
||||||
* Returns the resulting document tree
|
* Returns the resulting document tree or NULL in case of failure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
xmlDocPtr
|
xmlDocPtr
|
||||||
@@ -12990,9 +12993,10 @@ xmlDocPtr xmlParseMemory(const char *buffer, int size) {
|
|||||||
* @size: the size of the array
|
* @size: the size of the array
|
||||||
*
|
*
|
||||||
* parse an XML in-memory block and build a tree.
|
* parse an XML in-memory block and build a tree.
|
||||||
* In the case the document is not Well Formed, a tree is built anyway
|
* In the case the document is not Well Formed, an attempt to
|
||||||
*
|
* build a tree is tried anyway
|
||||||
* Returns the resulting document tree
|
*
|
||||||
|
* Returns the resulting document tree or NULL in case of error
|
||||||
*/
|
*/
|
||||||
|
|
||||||
xmlDocPtr xmlRecoverMemory(const char *buffer, int size) {
|
xmlDocPtr xmlRecoverMemory(const char *buffer, int size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user