Lines Matching defs:doc

160 static int validate_doc(xmlDocPtr doc, const char *name, const char *systemID);
432 * @param doc
443 xmlDocPtr doc,
450 /* Validate doc against known DTD */
452 doc, ELEMENT_VOLUMEREQUEST, VOLUME_REQUEST_DTD_LOC)) == 0) {
457 /* Convert the XML doc into a request_t */
458 error = xml_to_devconfig(xmlDocGetRootElement(doc),
469 * @param doc
480 xmlDocPtr doc,
487 /* Validate doc against known DTD */
488 if ((error = validate_doc(doc, ELEMENT_VOLUMEDEFAULTS,
500 /* Populate the global devconfig_t from the XML doc */
501 if ((error = xml_to_devconfig(xmlDocGetRootElement(doc),
543 * @param doc
554 xmlDocPtr doc,
561 /* Validate doc against known DTD */
563 doc, ELEMENT_VOLUMECONFIG, VOLUME_CONFIG_DTD_LOC)) == 0) {
568 /* Populate the devconfig_t from the XML doc */
570 xmlDocGetRootElement(doc), config_elements, *config);
584 * @param doc
593 xmlDocPtr *doc)
599 *doc = xmlNewDoc((xmlChar *)"1.0");
603 *doc, NULL, (xmlChar *)ELEMENT_VOLUMECONFIG, NULL);
604 xmlAddChild((xmlNodePtr)*doc, (xmlNodePtr)root);
611 *doc, ELEMENT_VOLUMECONFIG, VOLUME_CONFIG_DTD_LOC);
615 xmlFreeDoc(*doc);
624 * @param doc
634 xmlDocPtr doc,
716 xmlDocPtr result = xsltApplyStylesheet(style, doc, NULL);
756 * @param doc
769 xmlDocPtr doc,
776 if (doc == NULL) {
786 if ((dtd = xmlGetIntSubset(doc)) != NULL) {
797 doc, (xmlChar *)name, NULL, (xmlChar *)systemID);
809 if (!xmlValidateDocument(&context, doc)) {
1167 xmlDocPtr doc;
1172 doc = xmlNewDoc((xmlChar *)"1.0");
1176 doc, NULL, (xmlChar *)ELEMENT_L10N, NULL);
1177 xmlAddChild((xmlNodePtr) doc, (xmlNodePtr)root);
1243 xmlDocDumpFormatMemory(doc, &text, NULL, 1);
1249 return (doc);