Lines Matching defs:newDoc
12038 xmlDocPtr newDoc;
12085 newDoc = xmlNewDoc(BAD_CAST "1.0");
12086 if (newDoc == NULL) {
12090 newDoc->properties = XML_DOC_INTERNAL;
12092 newDoc->dict = ctx->myDoc->dict;
12093 xmlDictReference(newDoc->dict);
12096 newDoc->intSubset = ctx->myDoc->intSubset;
12097 newDoc->extSubset = ctx->myDoc->extSubset;
12100 newDoc->URL = xmlStrdup(ctx->myDoc->URL);
12102 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL);
12106 newDoc->intSubset = NULL;
12107 newDoc->extSubset = NULL;
12108 xmlFreeDoc(newDoc);
12111 xmlAddChild((xmlNodePtr) newDoc, newRoot);
12112 nodePush(ctxt, newDoc->children);
12114 ctxt->myDoc = newDoc;
12117 newDoc->children->doc = ctx->myDoc;
12191 if (ctxt->node != newDoc->children) {
12208 cur = newDoc->children->children;
12214 newDoc->children->children = NULL;
12223 newDoc->intSubset = NULL;
12224 newDoc->extSubset = NULL;
12225 xmlFreeDoc(newDoc);
12253 xmlDocPtr newDoc;
12303 newDoc = xmlNewDoc(BAD_CAST "1.0");
12304 if (newDoc == NULL) {
12311 newDoc->properties = XML_DOC_INTERNAL;
12312 newDoc->intSubset = doc->intSubset;
12313 newDoc->extSubset = doc->extSubset;
12314 newDoc->dict = doc->dict;
12315 xmlDictReference(newDoc->dict);
12318 newDoc->URL = xmlStrdup(doc->URL);
12320 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL);
12328 newDoc->intSubset = NULL;
12329 newDoc->extSubset = NULL;
12330 xmlFreeDoc(newDoc);
12333 xmlAddChild((xmlNodePtr) newDoc, newRoot);
12334 nodePush(ctxt, newDoc->children);
12372 if (ctxt->node != newDoc->children) {
12389 cur = newDoc->children->children;
12395 newDoc->children->children = NULL;
12427 newDoc->intSubset = NULL;
12428 newDoc->extSubset = NULL;
12429 xmlFreeDoc(newDoc);
12515 xmlDocPtr newDoc = NULL;
12558 newDoc = xmlNewDoc(BAD_CAST "1.0");
12559 if (newDoc == NULL) {
12565 newDoc->properties = XML_DOC_INTERNAL;
12566 newDoc->dict = ctxt->dict;
12567 xmlDictReference(newDoc->dict);
12568 ctxt->myDoc = newDoc;
12579 if (newDoc != NULL) {
12580 xmlFreeDoc(newDoc);
12667 if (newDoc != NULL) {
12668 xmlFreeDoc(newDoc);
12909 xmlDocPtr newDoc;
12936 newDoc = xmlNewDoc(BAD_CAST "1.0");
12937 if (newDoc == NULL) {
12941 newDoc->properties = XML_DOC_INTERNAL;
12954 newDoc->intSubset = doc->intSubset;
12955 newDoc->extSubset = doc->extSubset;
12957 newRoot = xmlNewDocNode(newDoc, NULL, BAD_CAST "pseudoroot", NULL);
12962 newDoc->intSubset = NULL;
12963 newDoc->extSubset = NULL;
12964 xmlFreeDoc(newDoc);
12967 xmlAddChild((xmlNodePtr) newDoc, newRoot);
12970 ctxt->myDoc = newDoc;
12972 ctxt->myDoc = newDoc;
12973 newDoc->children->doc = doc;
12976 newDoc->oldNs = doc->oldNs;
13002 if (ctxt->node != newDoc->children) {
13022 cur = newDoc->children->children;
13029 newDoc->children->children = NULL;
13035 newDoc->intSubset = NULL;
13036 newDoc->extSubset = NULL;
13037 newDoc->oldNs = NULL;
13038 xmlFreeDoc(newDoc);