Lines Matching defs:doc
205 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
6755 list->doc = ctxt->myDoc;
10047 * Then possibly doc type declaration(s) and more Misc
11823 ret->doc = NULL;
11826 tmp->doc = NULL;
11951 ret->doc = NULL;
11954 tmp->doc = NULL;
12093 newDoc->children->doc = ctx->myDoc;
12208 * @doc: the document the chunk pertains to
12224 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
12246 if (doc == NULL)
12288 newDoc->intSubset = doc->intSubset;
12289 newDoc->extSubset = doc->extSubset;
12290 newDoc->dict = doc->dict;
12293 if (doc->URL != NULL) {
12294 newDoc->URL = xmlStrdup(doc->URL);
12311 ctxt->myDoc = doc;
12312 newRoot->doc = doc;
12413 * @doc: the document the chunk pertains to
12432 xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data,
12434 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL,
12440 * @doc: the document the chunk pertains to
12459 xmlParseBalancedChunkMemory(xmlDocPtr doc, xmlSAXHandlerPtr sax,
12461 return xmlParseBalancedChunkMemoryRecover( doc, sax, user_data,
12672 xmlDocPtr doc = NULL;
12705 doc = node->doc;
12707 doc = (xmlDocPtr) node;
12708 if (doc == NULL)
12715 if (doc->type == XML_DOCUMENT_NODE)
12718 else if (doc->type == XML_HTML_DOCUMENT_NODE)
12734 * Use input doc's dict if present, else assure XML_PARSE_NODICT is set.
12735 * We need a dictionary for xmlDetectSAX2, so if there's no doc dict
12738 if (doc->dict != NULL) {
12741 ctxt->dict = doc->dict;
12747 ctxt->myDoc = doc;
12787 if (doc->type == XML_HTML_DOCUMENT_NODE)
12842 if (doc->dict != NULL)
12855 * @doc: the document the chunk pertains to
12879 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
12916 if ((doc != NULL) && (doc->dict != NULL)) {
12918 ctxt->dict = doc->dict;
12927 if (doc != NULL) {
12928 newDoc->intSubset = doc->intSubset;
12929 newDoc->extSubset = doc->extSubset;
12943 if (doc == NULL) {
12947 newDoc->children->doc = doc;
12948 /* Ensure that doc has XML spec namespace */
12949 xmlSearchNsByHref(doc, (xmlNodePtr)doc, XML_XML_NAMESPACE);
12950 newDoc->oldNs = doc->oldNs;
12962 if ( doc != NULL ){
12963 content = doc->children;
12964 doc->children = NULL;
12966 doc->children = content;
12999 xmlSetTreeDoc(cur, doc);