Lines Matching defs:doc
528 * @doc: the containing document
536 xmlDocPtr doc, xmlNsPtr ns, xmlCatalogEntryPtr cgroup) {
556 node = xmlNewDocNode(doc, ns, BAD_CAST "nextCatalog", NULL);
563 node = xmlNewDocNode(doc, ns, BAD_CAST "group", NULL);
567 xns = xmlSearchNsByHref(doc, node, XML_XML_NAMESPACE);
582 xmlDumpXMLCatalogNode(cur->next, node, doc, ns, cur);
586 node = xmlNewDocNode(doc, ns, BAD_CAST "public", NULL);
592 node = xmlNewDocNode(doc, ns, BAD_CAST "system", NULL);
598 node = xmlNewDocNode(doc, ns, BAD_CAST "rewriteSystem", NULL);
604 node = xmlNewDocNode(doc, ns, BAD_CAST "delegatePublic", NULL);
610 node = xmlNewDocNode(doc, ns, BAD_CAST "delegateSystem", NULL);
616 node = xmlNewDocNode(doc, ns, BAD_CAST "uri", NULL);
622 node = xmlNewDocNode(doc, ns, BAD_CAST "rewriteURI", NULL);
628 node = xmlNewDocNode(doc, ns, BAD_CAST "delegateURI", NULL);
655 xmlDocPtr doc;
664 doc = xmlNewDoc(NULL);
665 if (doc == NULL)
667 dtd = xmlNewDtd(doc, BAD_CAST "catalog",
671 xmlAddChild((xmlNodePtr) doc, (xmlNodePtr) dtd);
675 xmlFreeDoc(doc);
678 catalog = xmlNewDocNode(doc, ns, BAD_CAST "catalog", NULL);
681 xmlFreeDoc(doc);
685 xmlAddChild((xmlNodePtr) doc, catalog);
687 xmlDumpXMLCatalogNode(catal, catalog, doc, ns, NULL);
694 xmlFreeDoc(doc);
697 ret = xmlSaveFormatFileTo(buf, doc, NULL, 1);
702 xmlFreeDoc(doc);
1173 base = xmlNodeGetBase(cur->doc, cur);
1339 xmlDocPtr doc;
1347 doc = xmlParseCatalogFile((const char *) filename);
1348 if (doc == NULL) {
1359 cur = xmlDocGetRootElement(doc);
1367 xmlFreeDoc(doc);
1387 xmlCatalogErr(NULL, (xmlNodePtr) doc, XML_CATALOG_NOT_CATALOG,
1390 xmlFreeDoc(doc);
1393 xmlFreeDoc(doc);
1407 xmlCatalogEntryPtr doc;
1427 doc = (xmlCatalogEntryPtr)
1429 if (doc != NULL) {
1435 catal->children = doc->children;
1437 catal->children = doc;
1452 doc = xmlParseXMLCatalogFile(catal->prefer, catal->URL);
1453 if (doc == NULL) {
1460 catal->children = doc->children;
1462 catal->children = doc;
1464 doc->dealloc = 1;
1472 xmlHashAddEntry(xmlCatalogXMLFiles, catal->URL, doc);