Lines Matching refs:xml_doc
68 static xmlDocPtr xml_doc = NULL; variable
239 if (xml_doc == NULL) { in get_xml_doc()
243 xml_doc = xmlReadFile(xml_file, NULL, XML_PARSE_NOBLANKS); in get_xml_doc()
246 *docp = xml_doc; in get_xml_doc()
248 if (xml_doc == NULL) { in get_xml_doc()
268 if (xml_doc) { in close_xml_doc()
270 xmlFreeDoc(xml_doc); in close_xml_doc()
271 xml_doc = NULL; in close_xml_doc()
1411 if (xml_doc) { in xml_update_commit()
1413 if (xmlSaveFormatFile(xml_tmp_file, xml_doc, 1) == -1 || in xml_update_commit()
1422 xmlFreeDoc(xml_doc); in xml_update_commit()
1423 xml_doc = NULL; in xml_update_commit()
1443 if (xml_doc) { in xml_update_retreat()
1445 xmlFreeDoc(xml_doc); in xml_update_retreat()
1446 xml_doc = NULL; in xml_update_retreat()