Lines Matching refs:newDoc
12870 xmlDocPtr newDoc; in xmlParseCtxtExternalEntity() local
12899 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseCtxtExternalEntity()
12900 if (newDoc == NULL) { in xmlParseCtxtExternalEntity()
12904 newDoc->properties = XML_DOC_INTERNAL; in xmlParseCtxtExternalEntity()
12906 newDoc->dict = ctx->myDoc->dict; in xmlParseCtxtExternalEntity()
12907 xmlDictReference(newDoc->dict); in xmlParseCtxtExternalEntity()
12910 newDoc->intSubset = ctx->myDoc->intSubset; in xmlParseCtxtExternalEntity()
12911 newDoc->extSubset = ctx->myDoc->extSubset; in xmlParseCtxtExternalEntity()
12914 newDoc->URL = xmlStrdup(ctx->myDoc->URL); in xmlParseCtxtExternalEntity()
12916 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseCtxtExternalEntity()
12920 newDoc->intSubset = NULL; in xmlParseCtxtExternalEntity()
12921 newDoc->extSubset = NULL; in xmlParseCtxtExternalEntity()
12922 xmlFreeDoc(newDoc); in xmlParseCtxtExternalEntity()
12925 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseCtxtExternalEntity()
12926 nodePush(ctxt, newDoc->children); in xmlParseCtxtExternalEntity()
12928 ctxt->myDoc = newDoc; in xmlParseCtxtExternalEntity()
12931 newDoc->children->doc = ctx->myDoc; in xmlParseCtxtExternalEntity()
13015 if (ctxt->node != newDoc->children) { in xmlParseCtxtExternalEntity()
13032 cur = newDoc->children->children; in xmlParseCtxtExternalEntity()
13038 newDoc->children->children = NULL; in xmlParseCtxtExternalEntity()
13047 newDoc->intSubset = NULL; in xmlParseCtxtExternalEntity()
13048 newDoc->extSubset = NULL; in xmlParseCtxtExternalEntity()
13049 xmlFreeDoc(newDoc); in xmlParseCtxtExternalEntity()
13077 xmlDocPtr newDoc; in xmlParseExternalEntityPrivate() local
13127 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseExternalEntityPrivate()
13128 if (newDoc == NULL) { in xmlParseExternalEntityPrivate()
13135 newDoc->properties = XML_DOC_INTERNAL; in xmlParseExternalEntityPrivate()
13136 newDoc->intSubset = doc->intSubset; in xmlParseExternalEntityPrivate()
13137 newDoc->extSubset = doc->extSubset; in xmlParseExternalEntityPrivate()
13138 newDoc->dict = doc->dict; in xmlParseExternalEntityPrivate()
13139 xmlDictReference(newDoc->dict); in xmlParseExternalEntityPrivate()
13142 newDoc->URL = xmlStrdup(doc->URL); in xmlParseExternalEntityPrivate()
13144 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseExternalEntityPrivate()
13152 newDoc->intSubset = NULL; in xmlParseExternalEntityPrivate()
13153 newDoc->extSubset = NULL; in xmlParseExternalEntityPrivate()
13154 xmlFreeDoc(newDoc); in xmlParseExternalEntityPrivate()
13157 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseExternalEntityPrivate()
13158 nodePush(ctxt, newDoc->children); in xmlParseExternalEntityPrivate()
13196 if (ctxt->node != newDoc->children) { in xmlParseExternalEntityPrivate()
13213 cur = newDoc->children->children; in xmlParseExternalEntityPrivate()
13219 newDoc->children->children = NULL; in xmlParseExternalEntityPrivate()
13255 newDoc->intSubset = NULL; in xmlParseExternalEntityPrivate()
13256 newDoc->extSubset = NULL; in xmlParseExternalEntityPrivate()
13257 xmlFreeDoc(newDoc); in xmlParseExternalEntityPrivate()
13343 xmlDocPtr newDoc = NULL; in xmlParseBalancedChunkMemoryInternal() local
13395 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseBalancedChunkMemoryInternal()
13396 if (newDoc == NULL) { in xmlParseBalancedChunkMemoryInternal()
13402 newDoc->properties = XML_DOC_INTERNAL; in xmlParseBalancedChunkMemoryInternal()
13403 newDoc->dict = ctxt->dict; in xmlParseBalancedChunkMemoryInternal()
13404 xmlDictReference(newDoc->dict); in xmlParseBalancedChunkMemoryInternal()
13405 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryInternal()
13416 if (newDoc != NULL) { in xmlParseBalancedChunkMemoryInternal()
13417 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryInternal()
13506 if (newDoc != NULL) { in xmlParseBalancedChunkMemoryInternal()
13507 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryInternal()
13772 xmlDocPtr newDoc; in xmlParseBalancedChunkMemoryRecover() local
13799 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseBalancedChunkMemoryRecover()
13800 if (newDoc == NULL) { in xmlParseBalancedChunkMemoryRecover()
13804 newDoc->properties = XML_DOC_INTERNAL; in xmlParseBalancedChunkMemoryRecover()
13817 newDoc->intSubset = doc->intSubset; in xmlParseBalancedChunkMemoryRecover()
13818 newDoc->extSubset = doc->extSubset; in xmlParseBalancedChunkMemoryRecover()
13820 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseBalancedChunkMemoryRecover()
13825 newDoc->intSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13826 newDoc->extSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13827 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryRecover()
13830 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseBalancedChunkMemoryRecover()
13833 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
13835 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
13836 newDoc->children->doc = doc; in xmlParseBalancedChunkMemoryRecover()
13839 newDoc->oldNs = doc->oldNs; in xmlParseBalancedChunkMemoryRecover()
13866 if (ctxt->node != newDoc->children) { in xmlParseBalancedChunkMemoryRecover()
13886 cur = newDoc->children->children; in xmlParseBalancedChunkMemoryRecover()
13893 newDoc->children->children = NULL; in xmlParseBalancedChunkMemoryRecover()
13899 newDoc->intSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13900 newDoc->extSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13901 newDoc->oldNs = NULL; in xmlParseBalancedChunkMemoryRecover()
13902 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryRecover()