From: Thadeu Lima de Souza Cascardo Date: Tue, 30 Sep 2008 08:19:12 +0000 (-0300) Subject: Do not output error when trying to parse XML data X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fatompub.git;a=commitdiff_plain;h=c3506f3315871595a82284d221b01af718606c2c Do not output error when trying to parse XML data --- 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) {