if (ret == 0)
{
xmlDocPtr sub_doc =
- xmlParseMemory( wrbuf_buf(result), wrbuf_len(result));
+ xmlParseMemory(wrbuf_buf(result), wrbuf_len(result));
if (sub_doc)
{
xmlNodePtr t = xmlDocGetRootElement(sub_doc);
- xmlAddChild(node, xmlCopyNode(t, 1));
+ xmlReplaceNode(node, xmlCopyNode(t, 1));
xmlFreeDoc(sub_doc);
}
}
zh, "snippet", yaz_oid_recsyn_xml,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<root>\n"
- " <z:meta xmlns:z=\"http://indexdata.com/zebra-2.0\" name=\"snippet\">"
- "<record xmlns=\"http://www.indexdata.com/zebra/\">\n"
+ " <record xmlns=\"http://www.indexdata.com/zebra/\">\n"
" <snippet name=\"title\" type=\"w\">How to program a <s>computer</s></snippet>\n"
- "</record></z:meta>\n"
+ "</record>\n"
" <title>How to program a computer</title>\n"
"</root>\n"),
ZEBRA_OK);