253
233
resultCopy->source = g_strdup (result->source);
254
234
resultCopy->httpstatus = result->httpstatus;
255
235
resultCopy->contentType = g_strdup (result->contentType);
257
236
g_free (resultCopy->updateState);
258
237
resultCopy->updateState = update_state_copy (result->updateState);
260
239
/* update the XML by removing 'read', 'reading-list' etc. as labels. */
261
xmlDocPtr doc = xml_parse (result->data, result->size, FALSE, NULL);
262
241
xmlXPathContextPtr xpathCtxt = xmlXPathNewContext (doc) ;
263
242
xmlXPathRegisterNs (xpathCtxt, "atom", "http://www.w3.org/2005/Atom");
264
243
google_source_xpath_foreach_match ("/atom:feed/atom:entry/atom:category[@scheme='http://www.google.com/reader/']", xpathCtxt, google_source_xml_unlink_node, NULL);