Lines Matching refs:myDoc

2966     if (ctxt->myDoc != NULL) {  in areBlanks()
2967 ret = xmlIsMixedElement(ctxt->myDoc, ctxt->node->name); in areBlanks()
5561 if ((ctxt->myDoc == NULL) || in xmlParseEntityDecl()
5562 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE))) { in xmlParseEntityDecl()
5563 if (ctxt->myDoc == NULL) { in xmlParseEntityDecl()
5564 ctxt->myDoc = xmlNewDoc(SAX_COMPAT_MODE); in xmlParseEntityDecl()
5565 if (ctxt->myDoc == NULL) { in xmlParseEntityDecl()
5569 ctxt->myDoc->properties = XML_DOC_INTERNAL; in xmlParseEntityDecl()
5571 if (ctxt->myDoc->intSubset == NULL) in xmlParseEntityDecl()
5572 ctxt->myDoc->intSubset = xmlNewDtd(ctxt->myDoc, in xmlParseEntityDecl()
5634 ((ctxt->myDoc == NULL) || in xmlParseEntityDecl()
5635 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE)))) { in xmlParseEntityDecl()
5636 if (ctxt->myDoc == NULL) { in xmlParseEntityDecl()
5637 ctxt->myDoc = xmlNewDoc(SAX_COMPAT_MODE); in xmlParseEntityDecl()
5638 if (ctxt->myDoc == NULL) { in xmlParseEntityDecl()
5642 ctxt->myDoc->properties = XML_DOC_INTERNAL; in xmlParseEntityDecl()
5645 if (ctxt->myDoc->intSubset == NULL) in xmlParseEntityDecl()
5646 ctxt->myDoc->intSubset = xmlNewDtd(ctxt->myDoc, in xmlParseEntityDecl()
6184 ret = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_PCDATA); in xmlParseElementMixedContentDecl()
6194 ret = cur = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_PCDATA); in xmlParseElementMixedContentDecl()
6200 ret = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR); in xmlParseElementMixedContentDecl()
6207 n = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR); in xmlParseElementMixedContentDecl()
6209 n->c1 = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT); in xmlParseElementMixedContentDecl()
6222 xmlFreeDocElementContent(ctxt->myDoc, cur); in xmlParseElementMixedContentDecl()
6230 cur->c2 = xmlNewDocElementContent(ctxt->myDoc, elem, in xmlParseElementMixedContentDecl()
6244 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementMixedContentDecl()
6319 cur = ret = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT); in xmlParseElementChildrenContentDeclPriv()
6356 xmlFreeDocElementContent(ctxt->myDoc, last); in xmlParseElementChildrenContentDeclPriv()
6358 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6363 op = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_SEQ); in xmlParseElementChildrenContentDeclPriv()
6366 xmlFreeDocElementContent(ctxt->myDoc, last); in xmlParseElementChildrenContentDeclPriv()
6367 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6396 xmlFreeDocElementContent(ctxt->myDoc, last); in xmlParseElementChildrenContentDeclPriv()
6398 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6403 op = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR); in xmlParseElementChildrenContentDeclPriv()
6406 xmlFreeDocElementContent(ctxt->myDoc, last); in xmlParseElementChildrenContentDeclPriv()
6408 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6429 xmlFreeDocElementContent(ctxt->myDoc, last); in xmlParseElementChildrenContentDeclPriv()
6431 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6450 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6453 last = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT); in xmlParseElementChildrenContentDeclPriv()
6456 xmlFreeDocElementContent(ctxt->myDoc, ret); in xmlParseElementChildrenContentDeclPriv()
6718 xmlFreeDocElementContent(ctxt->myDoc, content); in xmlParseElementDecl()
6740 xmlFreeDocElementContent(ctxt->myDoc, content); in xmlParseElementDecl()
6743 xmlFreeDocElementContent(ctxt->myDoc, content); in xmlParseElementDecl()
7090 if (ctxt->myDoc == NULL) { in xmlParseExternalSubset()
7091 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlParseExternalSubset()
7092 if (ctxt->myDoc == NULL) { in xmlParseExternalSubset()
7096 ctxt->myDoc->properties = XML_DOC_INTERNAL; in xmlParseExternalSubset()
7098 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->intSubset == NULL)) in xmlParseExternalSubset()
7099 xmlCreateIntSubset(ctxt->myDoc, NULL, ExternalID, SystemID); in xmlParseExternalSubset()
7269 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt, ctxt->sax, in xmlParseReference()
7316 list->doc = ctxt->myDoc; in xmlParseReference()
7388 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt, in xmlParseReference()
7465 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1); in xmlParseReference()
7518 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1); in xmlParseReference()
10090 if (ctxt->validate && ctxt->wellFormed && ctxt->myDoc && in xmlParseElement()
10091 ctxt->node && (ctxt->node == ctxt->myDoc->children)) in xmlParseElement()
10092 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc); in xmlParseElement()
10788 if ((ctxt->myDoc != NULL) && (ctxt->input != NULL) && in xmlParseDocument()
10790 ctxt->myDoc->compression = ctxt->input->buf->compressed; in xmlParseDocument()
10866 if ((ctxt->myDoc != NULL) && in xmlParseDocument()
10867 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE))) { in xmlParseDocument()
10868 xmlFreeDoc(ctxt->myDoc); in xmlParseDocument()
10869 ctxt->myDoc = NULL; in xmlParseDocument()
10872 if ((ctxt->wellFormed) && (ctxt->myDoc != NULL)) { in xmlParseDocument()
10873 ctxt->myDoc->properties |= XML_DOC_WELLFORMED; in xmlParseDocument()
10875 ctxt->myDoc->properties |= XML_DOC_DTDVALID; in xmlParseDocument()
10877 ctxt->myDoc->properties |= XML_DOC_NSVALID; in xmlParseDocument()
10879 ctxt->myDoc->properties |= XML_DOC_OLD10; in xmlParseDocument()
11499 if (ctxt->validate && ctxt->wellFormed && ctxt->myDoc && in xmlParseTryOrFinish()
11500 ctxt->node && (ctxt->node == ctxt->myDoc->children)) in xmlParseTryOrFinish()
11501 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc); in xmlParseTryOrFinish()
12751 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlIOParseDTD()
12752 if (ctxt->myDoc == NULL) { in xmlIOParseDTD()
12756 ctxt->myDoc->properties = XML_DOC_INTERNAL; in xmlIOParseDTD()
12757 ctxt->myDoc->extSubset = xmlNewDtd(ctxt->myDoc, BAD_CAST "none", in xmlIOParseDTD()
12779 if (ctxt->myDoc != NULL) { in xmlIOParseDTD()
12781 ret = ctxt->myDoc->extSubset; in xmlIOParseDTD()
12782 ctxt->myDoc->extSubset = NULL; in xmlIOParseDTD()
12796 xmlFreeDoc(ctxt->myDoc); in xmlIOParseDTD()
12797 ctxt->myDoc = NULL; in xmlIOParseDTD()
12898 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0"); in xmlSAXParseDTD()
12899 if (ctxt->myDoc == NULL) { in xmlSAXParseDTD()
12905 ctxt->myDoc->properties = XML_DOC_INTERNAL; in xmlSAXParseDTD()
12906 ctxt->myDoc->extSubset = xmlNewDtd(ctxt->myDoc, BAD_CAST "none", in xmlSAXParseDTD()
12910 if (ctxt->myDoc != NULL) { in xmlSAXParseDTD()
12912 ret = ctxt->myDoc->extSubset; in xmlSAXParseDTD()
12913 ctxt->myDoc->extSubset = NULL; in xmlSAXParseDTD()
12927 xmlFreeDoc(ctxt->myDoc); in xmlSAXParseDTD()
12928 ctxt->myDoc = NULL; in xmlSAXParseDTD()
12998 if (ctx->myDoc == NULL) /* @@ relax but check for dereferences */ in xmlParseCtxtExternalEntity()
13015 if (ctx->myDoc->dict) { in xmlParseCtxtExternalEntity()
13016 newDoc->dict = ctx->myDoc->dict; in xmlParseCtxtExternalEntity()
13019 if (ctx->myDoc != NULL) { in xmlParseCtxtExternalEntity()
13020 newDoc->intSubset = ctx->myDoc->intSubset; in xmlParseCtxtExternalEntity()
13021 newDoc->extSubset = ctx->myDoc->extSubset; in xmlParseCtxtExternalEntity()
13023 if (ctx->myDoc->URL != NULL) { in xmlParseCtxtExternalEntity()
13024 newDoc->URL = xmlStrdup(ctx->myDoc->URL); in xmlParseCtxtExternalEntity()
13037 if (ctx->myDoc == NULL) { in xmlParseCtxtExternalEntity()
13038 ctxt->myDoc = newDoc; in xmlParseCtxtExternalEntity()
13040 ctxt->myDoc = ctx->myDoc; in xmlParseCtxtExternalEntity()
13041 newDoc->children->doc = ctx->myDoc; in xmlParseCtxtExternalEntity()
13269 ctxt->myDoc = doc; in xmlParseExternalEntityPrivate()
13501 if (oldctxt->myDoc == NULL) { in xmlParseBalancedChunkMemoryInternal()
13512 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryInternal()
13514 ctxt->myDoc = oldctxt->myDoc; in xmlParseBalancedChunkMemoryInternal()
13515 content = ctxt->myDoc->children; in xmlParseBalancedChunkMemoryInternal()
13516 last = ctxt->myDoc->last; in xmlParseBalancedChunkMemoryInternal()
13518 newRoot = xmlNewDocNode(ctxt->myDoc, NULL, BAD_CAST "pseudoroot", NULL); in xmlParseBalancedChunkMemoryInternal()
13528 ctxt->myDoc->children = NULL; in xmlParseBalancedChunkMemoryInternal()
13529 ctxt->myDoc->last = NULL; in xmlParseBalancedChunkMemoryInternal()
13530 xmlAddChild((xmlNodePtr) ctxt->myDoc, newRoot); in xmlParseBalancedChunkMemoryInternal()
13531 nodePush(ctxt, ctxt->myDoc->children); in xmlParseBalancedChunkMemoryInternal()
13553 if (ctxt->node != ctxt->myDoc->children) { in xmlParseBalancedChunkMemoryInternal()
13573 cur = ctxt->myDoc->children->children; in xmlParseBalancedChunkMemoryInternal()
13578 (oldctxt->myDoc) && (oldctxt->myDoc->intSubset) && in xmlParseBalancedChunkMemoryInternal()
13581 oldctxt->myDoc, cur); in xmlParseBalancedChunkMemoryInternal()
13587 ctxt->myDoc->children->children = NULL; in xmlParseBalancedChunkMemoryInternal()
13589 if (ctxt->myDoc != NULL) { in xmlParseBalancedChunkMemoryInternal()
13590 xmlFreeNode(ctxt->myDoc->children); in xmlParseBalancedChunkMemoryInternal()
13591 ctxt->myDoc->children = content; in xmlParseBalancedChunkMemoryInternal()
13592 ctxt->myDoc->last = last; in xmlParseBalancedChunkMemoryInternal()
13734 ctxt->myDoc = doc; in xmlParseInNodeContext()
13939 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
13941 ctxt->myDoc = newDoc; in xmlParseBalancedChunkMemoryRecover()
14047 ret = ctxt->myDoc; in xmlSAXParseEntity()
14050 xmlFreeDoc(ctxt->myDoc); in xmlSAXParseEntity()
14051 ctxt->myDoc = NULL; in xmlSAXParseEntity()
14278 ret = ctxt->myDoc; in xmlSAXParseFileWithData()
14288 xmlFreeDoc(ctxt->myDoc); in xmlSAXParseFileWithData()
14289 ctxt->myDoc = NULL; in xmlSAXParseFileWithData()
14443 if (ctxt->myDoc != NULL) { in xmlSAXUserParseFile()
14444 xmlFreeDoc(ctxt->myDoc); in xmlSAXUserParseFile()
14445 ctxt->myDoc = NULL; in xmlSAXUserParseFile()
14549 if ((ctxt->wellFormed) || recovery) ret = ctxt->myDoc; in xmlSAXParseMemoryWithData()
14552 xmlFreeDoc(ctxt->myDoc); in xmlSAXParseMemoryWithData()
14553 ctxt->myDoc = NULL; in xmlSAXParseMemoryWithData()
14653 if (ctxt->myDoc != NULL) { in xmlSAXUserParseMemory()
14654 xmlFreeDoc(ctxt->myDoc); in xmlSAXUserParseMemory()
14655 ctxt->myDoc = NULL; in xmlSAXUserParseMemory()
14715 if ((ctxt->wellFormed) || recovery) ret = ctxt->myDoc; in xmlSAXParseDoc()
14718 xmlFreeDoc(ctxt->myDoc); in xmlSAXParseDoc()
14719 ctxt->myDoc = NULL; in xmlSAXParseDoc()
14954 if (ctxt->myDoc != NULL) in xmlCtxtReset()
14955 xmlFreeDoc(ctxt->myDoc); in xmlCtxtReset()
14956 ctxt->myDoc = NULL; in xmlCtxtReset()
15298 ret = ctxt->myDoc; in xmlDoRead()
15301 if (ctxt->myDoc != NULL) { in xmlDoRead()
15302 xmlFreeDoc(ctxt->myDoc); in xmlDoRead()
15305 ctxt->myDoc = NULL; in xmlDoRead()