Lines Matching refs:doc
516 * @doc: the containing document
524 xmlDocPtr doc, xmlNsPtr ns, xmlCatalogEntryPtr cgroup) {
544 node = xmlNewDocNode(doc, ns, BAD_CAST "nextCatalog", NULL);
551 node = xmlNewDocNode(doc, ns, BAD_CAST "group", NULL);
555 xns = xmlSearchNsByHref(doc, node, XML_XML_NAMESPACE);
570 xmlDumpXMLCatalogNode(cur->next, node, doc, ns, cur);
574 node = xmlNewDocNode(doc, ns, BAD_CAST "public", NULL);
580 node = xmlNewDocNode(doc, ns, BAD_CAST "system", NULL);
586 node = xmlNewDocNode(doc, ns, BAD_CAST "rewriteSystem", NULL);
592 node = xmlNewDocNode(doc, ns, BAD_CAST "delegatePublic", NULL);
598 node = xmlNewDocNode(doc, ns, BAD_CAST "delegateSystem", NULL);
604 node = xmlNewDocNode(doc, ns, BAD_CAST "uri", NULL);
610 node = xmlNewDocNode(doc, ns, BAD_CAST "rewriteURI", NULL);
616 node = xmlNewDocNode(doc, ns, BAD_CAST "delegateURI", NULL);
643 xmlDocPtr doc;
652 doc = xmlNewDoc(NULL);
653 if (doc == NULL)
655 dtd = xmlNewDtd(doc, BAD_CAST "catalog",
659 xmlAddChild((xmlNodePtr) doc, (xmlNodePtr) dtd);
663 xmlFreeDoc(doc);
666 catalog = xmlNewDocNode(doc, ns, BAD_CAST "catalog", NULL);
669 xmlFreeDoc(doc);
673 xmlAddChild((xmlNodePtr) doc, catalog);
675 xmlDumpXMLCatalogNode(catal, catalog, doc, ns, NULL);
682 xmlFreeDoc(doc);
685 ret = xmlSaveFormatFileTo(buf, doc, NULL, 1);
690 xmlFreeDoc(doc);
1161 base = xmlNodeGetBase(cur->doc, cur);
1327 xmlDocPtr doc;
1335 doc = xmlParseCatalogFile((const char *) filename);
1336 if (doc == NULL) {
1347 cur = xmlDocGetRootElement(doc);
1355 xmlFreeDoc(doc);
1375 xmlCatalogErr(NULL, (xmlNodePtr) doc, XML_CATALOG_NOT_CATALOG,
1378 xmlFreeDoc(doc);
1381 xmlFreeDoc(doc);
1395 xmlCatalogEntryPtr doc;
1415 doc = (xmlCatalogEntryPtr)
1417 if (doc != NULL) {
1423 catal->children = doc->children;
1425 catal->children = doc;
1440 doc = xmlParseXMLCatalogFile(catal->prefer, catal->URL);
1441 if (doc == NULL) {
1448 catal->children = doc->children;
1450 catal->children = doc;
1452 doc->dealloc = 1;
1460 xmlHashAddEntry(xmlCatalogXMLFiles, catal->URL, doc);