Lines Matching defs:doc
93 char *file, char **valid_types, xmlDocPtr *doc, char **root);
94 static int get_volume_request_or_config(xmlDocPtr *doc, char **root);
257 xmlDocPtr doc;
261 doc = xmlNewDoc((xmlChar *)"1.0");
265 doc, NULL, (xmlChar *)ELEMENT_VOLUMEREQUEST, NULL);
266 xmlAddChild((xmlNodePtr) doc, (xmlNodePtr)request);
331 xmlDocDumpFormatMemory(doc, &text, NULL, 1);
337 return (doc);
979 * @param doc
992 xmlDocPtr *doc,
1000 * Create XML doc by reading the specified file using the
1003 *doc = xmlSAXParseFile((xmlSAXHandlerPtr)
1006 if (*doc != NULL) {
1008 xmlNodePtr root_elem = xmlDocGetRootElement(*doc);
1020 xmlFreeDoc(*doc);
1038 * @param doc
1050 xmlDocPtr *doc,
1057 *doc = create_volume_request_XML();
1059 if (*doc == NULL) {
1073 error = get_doc_from_file(arg_inputfile, valid, doc, root);
1169 xmlDocPtr doc;
1172 if ((error = config_to_xml(config, &doc)) == 0) {
1176 xmlDocDumpFormatMemory(doc, &text, NULL, 1);
1194 if ((error = xml_to_commands(doc, &commands)) == 0) {
1206 xmlFreeDoc(doc);
1386 xmlDocPtr doc;
1393 if ((error = get_volume_request_or_config(&doc, &root)) == 0) {
1409 if ((error = xml_to_config(doc, &config)) == 0) {
1420 if ((error = xml_to_request(doc, &request)) == 0) {
1452 xmlFreeDoc(doc);