[libgrss] XML parsing always in "recovery" mode, far more relaxed



commit f8bb75208fd6b77d0c0f1577ab7b3446cf2e2a3e
Author: Roberto Guido <bob4mail gmail com>
Date:   Thu Apr 29 05:13:04 2010 +0200

    XML parsing always in "recovery" mode, far more relaxed

 src/utils.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.c b/src/utils.c
index 0f89a67..921858a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -292,7 +292,7 @@ content_to_xml (const gchar *contents, gsize size)
 
 	ctxt = xmlNewParserCtxt ();
 	ctxt->sax->getEntity = xml_process_entities;
-	doc = xmlSAXParseMemory (ctxt->sax, contents, size, 0);
+	doc = xmlSAXParseMemory (ctxt->sax, contents, size, 1);
 	xmlFreeParserCtxt (ctxt);
 
 	return doc;
@@ -306,7 +306,7 @@ file_to_xml (const gchar *path)
 
 	ctxt = xmlNewParserCtxt ();
 	ctxt->sax->getEntity = xml_process_entities;
-	doc = xmlSAXParseFile (ctxt->sax, path, 0);
+	doc = xmlSAXParseFile (ctxt->sax, path, 1);
 	xmlFreeParserCtxt (ctxt);
 
 	return doc;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]