Lines Matching defs:xml_doc
64 static xmlDocPtr xml_doc = NULL;
235 if (xml_doc == NULL) {
239 xml_doc = xmlParseFile(xml_file);
242 *docp = xml_doc;
244 if (xml_doc == NULL) {
264 if (xml_doc) {
266 xmlFreeDoc(xml_doc);
267 xml_doc = NULL;
1410 if (xml_doc) {
1412 if (xmlSaveFormatFile(xml_tmp_file, xml_doc, 1) == -1 ||
1420 /* close the xml_doc */
1421 xmlFreeDoc(xml_doc);
1422 xml_doc = NULL;
1442 if (xml_doc) {
1443 /* close the xml_doc */
1444 xmlFreeDoc(xml_doc);
1445 xml_doc = NULL;