2332a2333 > * Note that this does not remove the attribute from its parent node. 2338c2339 < xmlAttrPtr cur; --- > xmlIDPtr cur; 2354c2355,2359 < if (cur != attr) { --- > > /* haven't included a streaming mode test, as > * presumably one wouldn't be deleting an ID based on > * a xmlAttrPtr. */ > if (cur->attr == NULL || cur->attr != attr) { 2358c2363 < xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator) xmlFreeID); --- > xmlHashRemoveEntry(table, ID, (xmlHashDeallocator) xmlFreeID);