• Home
  • Raw
  • Download

Lines Matching refs:newDoc

12335     xmlDocPtr newDoc;  in xmlParseCtxtExternalEntity()  local
12364 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseCtxtExternalEntity()
12365 if (newDoc == NULL) { in xmlParseCtxtExternalEntity()
12369 newDoc->properties = XML_DOC_INTERNAL; in xmlParseCtxtExternalEntity()
12371 newDoc->dict = ctx->myDoc->dict; in xmlParseCtxtExternalEntity()
12372 xmlDictReference(newDoc->dict); in xmlParseCtxtExternalEntity()
12375 newDoc->intSubset = ctx->myDoc->intSubset; in xmlParseCtxtExternalEntity()
12376 newDoc->extSubset = ctx->myDoc->extSubset; in xmlParseCtxtExternalEntity()
12379 newDoc->URL = xmlStrdup(ctx->myDoc->URL); in xmlParseCtxtExternalEntity()
12381 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseCtxtExternalEntity()
12385 newDoc->intSubset = NULL; in xmlParseCtxtExternalEntity()
12386 newDoc->extSubset = NULL; in xmlParseCtxtExternalEntity()
12387 xmlFreeDoc(newDoc); in xmlParseCtxtExternalEntity()
12390 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseCtxtExternalEntity()
12391 nodePush(ctxt, newDoc->children); in xmlParseCtxtExternalEntity()
12393 ctxt->myDoc = newDoc; in xmlParseCtxtExternalEntity()
12396 newDoc->children->doc = ctx->myDoc; in xmlParseCtxtExternalEntity()
12470 if (ctxt->node != newDoc->children) { in xmlParseCtxtExternalEntity()
12487 cur = newDoc->children->children; in xmlParseCtxtExternalEntity()
12493 newDoc->children->children = NULL; in xmlParseCtxtExternalEntity()
12502 newDoc->intSubset = NULL; in xmlParseCtxtExternalEntity()
12503 newDoc->extSubset = NULL; in xmlParseCtxtExternalEntity()
12504 xmlFreeDoc(newDoc); in xmlParseCtxtExternalEntity()
12532 xmlDocPtr newDoc; in xmlParseExternalEntityPrivate() local
12582 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseExternalEntityPrivate()
12583 if (newDoc == NULL) { in xmlParseExternalEntityPrivate()
12590 newDoc->properties = XML_DOC_INTERNAL; in xmlParseExternalEntityPrivate()
12591 newDoc->intSubset = doc->intSubset; in xmlParseExternalEntityPrivate()
12592 newDoc->extSubset = doc->extSubset; in xmlParseExternalEntityPrivate()
12593 newDoc->dict = doc->dict; in xmlParseExternalEntityPrivate()
12594 xmlDictReference(newDoc->dict); in xmlParseExternalEntityPrivate()
12597 newDoc->URL = xmlStrdup(doc->URL); in xmlParseExternalEntityPrivate()
12599 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseExternalEntityPrivate()
12607 newDoc->intSubset = NULL; in xmlParseExternalEntityPrivate()
12608 newDoc->extSubset = NULL; in xmlParseExternalEntityPrivate()
12609 xmlFreeDoc(newDoc); in xmlParseExternalEntityPrivate()
12612 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseExternalEntityPrivate()
12613 nodePush(ctxt, newDoc->children); in xmlParseExternalEntityPrivate()
12651 if (ctxt->node != newDoc->children) { in xmlParseExternalEntityPrivate()
12668 cur = newDoc->children->children; in xmlParseExternalEntityPrivate()
12674 newDoc->children->children = NULL; in xmlParseExternalEntityPrivate()
12708 newDoc->intSubset = NULL; in xmlParseExternalEntityPrivate()
12709 newDoc->extSubset = NULL; in xmlParseExternalEntityPrivate()
12710 xmlFreeDoc(newDoc); in xmlParseExternalEntityPrivate()
12796 xmlDocPtr newDoc = NULL; in xmlParseBalancedChunkMemoryInternal() local
12847 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseBalancedChunkMemoryInternal()
12848 if (newDoc == NULL) { in xmlParseBalancedChunkMemoryInternal()
12854 newDoc->properties = XML_DOC_INTERNAL; in xmlParseBalancedChunkMemoryInternal()
12855 newDoc->dict = ctxt->dict; in xmlParseBalancedChunkMemoryInternal()
12856 xmlDictReference(newDoc->dict); in xmlParseBalancedChunkMemoryInternal()
12857 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryInternal()
12868 if (newDoc != NULL) { in xmlParseBalancedChunkMemoryInternal()
12869 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryInternal()
12958 if (newDoc != NULL) { in xmlParseBalancedChunkMemoryInternal()
12959 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryInternal()
13222 xmlDocPtr newDoc; in xmlParseBalancedChunkMemoryRecover() local
13249 newDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseBalancedChunkMemoryRecover()
13250 if (newDoc == NULL) { in xmlParseBalancedChunkMemoryRecover()
13254 newDoc->properties = XML_DOC_INTERNAL; in xmlParseBalancedChunkMemoryRecover()
13267 newDoc->intSubset = doc->intSubset; in xmlParseBalancedChunkMemoryRecover()
13268 newDoc->extSubset = doc->extSubset; in xmlParseBalancedChunkMemoryRecover()
13270 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseBalancedChunkMemoryRecover()
13275 newDoc->intSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13276 newDoc->extSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13277 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryRecover()
13280 xmlAddChild((xmlNodePtr) newDoc, newRoot); in xmlParseBalancedChunkMemoryRecover()
13283 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
13285 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
13286 newDoc->children->doc = doc; in xmlParseBalancedChunkMemoryRecover()
13289 newDoc->oldNs = doc->oldNs; in xmlParseBalancedChunkMemoryRecover()
13315 if (ctxt->node != newDoc->children) { in xmlParseBalancedChunkMemoryRecover()
13335 cur = newDoc->children->children; in xmlParseBalancedChunkMemoryRecover()
13342 newDoc->children->children = NULL; in xmlParseBalancedChunkMemoryRecover()
13348 newDoc->intSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13349 newDoc->extSubset = NULL; in xmlParseBalancedChunkMemoryRecover()
13350 newDoc->oldNs = NULL; in xmlParseBalancedChunkMemoryRecover()
13351 xmlFreeDoc(newDoc); in xmlParseBalancedChunkMemoryRecover()