From c3506f3315871595a82284d221b01af718606c2c Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Tue, 30 Sep 2008 05:19:12 -0300 Subject: [PATCH] Do not output error when trying to parse XML data --- atom/entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/entry.c b/atom/entry.c index 21eae78..069207b 100644 --- a/atom/entry.c +++ b/atom/entry.c @@ -52,7 +52,8 @@ atom_entry_new_data_len (char *data, size_t len) xmlNodePtr root; xmlNodePtr child; entry = g_slice_new0 (AtomEntry); - entry->doc = xmlReadMemory (data, len, NULL, NULL, XML_PARSE_RECOVER); + entry->doc = xmlReadMemory (data, len, NULL, NULL, + XML_PARSE_RECOVER | XML_PARSE_NOERROR); if (entry->doc == NULL || (root = xmlDocGetRootElement (entry->doc)) == NULL) { -- 2.20.1