Lines Matching refs:myDoc
3003 if (ctxt->myDoc != NULL) {
3004 ret = xmlIsMixedElement(ctxt->myDoc, ctxt->node->name);
5613 if ((ctxt->myDoc == NULL) ||
5614 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE))) {
5615 if (ctxt->myDoc == NULL) {
5616 ctxt->myDoc = xmlNewDoc(SAX_COMPAT_MODE);
5617 if (ctxt->myDoc == NULL) {
5621 ctxt->myDoc->properties = XML_DOC_INTERNAL;
5623 if (ctxt->myDoc->intSubset == NULL)
5624 ctxt->myDoc->intSubset = xmlNewDtd(ctxt->myDoc,
5686 ((ctxt->myDoc == NULL) ||
5687 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE)))) {
5688 if (ctxt->myDoc == NULL) {
5689 ctxt->myDoc = xmlNewDoc(SAX_COMPAT_MODE);
5690 if (ctxt->myDoc == NULL) {
5694 ctxt->myDoc->properties = XML_DOC_INTERNAL;
5697 if (ctxt->myDoc->intSubset == NULL)
5698 ctxt->myDoc->intSubset = xmlNewDtd(ctxt->myDoc,
6237 ret = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_PCDATA);
6247 ret = cur = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_PCDATA);
6253 ret = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR);
6260 n = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR);
6262 n->c1 = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT);
6275 xmlFreeDocElementContent(ctxt->myDoc, cur);
6283 cur->c2 = xmlNewDocElementContent(ctxt->myDoc, elem,
6297 xmlFreeDocElementContent(ctxt->myDoc, ret);
6372 cur = ret = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT);
6409 xmlFreeDocElementContent(ctxt->myDoc, last);
6411 xmlFreeDocElementContent(ctxt->myDoc, ret);
6416 op = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_SEQ);
6419 xmlFreeDocElementContent(ctxt->myDoc, last);
6420 xmlFreeDocElementContent(ctxt->myDoc, ret);
6449 xmlFreeDocElementContent(ctxt->myDoc, last);
6451 xmlFreeDocElementContent(ctxt->myDoc, ret);
6456 op = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_OR);
6459 xmlFreeDocElementContent(ctxt->myDoc, last);
6461 xmlFreeDocElementContent(ctxt->myDoc, ret);
6482 xmlFreeDocElementContent(ctxt->myDoc, last);
6484 xmlFreeDocElementContent(ctxt->myDoc, ret);
6503 xmlFreeDocElementContent(ctxt->myDoc, ret);
6506 last = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT);
6509 xmlFreeDocElementContent(ctxt->myDoc, ret);
6772 xmlFreeDocElementContent(ctxt->myDoc, content);
6794 xmlFreeDocElementContent(ctxt->myDoc, content);
6797 xmlFreeDocElementContent(ctxt->myDoc, content);
7161 if (ctxt->myDoc == NULL) {
7162 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0");
7163 if (ctxt->myDoc == NULL) {
7167 ctxt->myDoc->properties = XML_DOC_INTERNAL;
7169 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->intSubset == NULL))
7170 xmlCreateIntSubset(ctxt->myDoc, NULL, ExternalID, SystemID);
7340 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt, ctxt->sax,
7387 list->doc = ctxt->myDoc;
7459 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt,
7536 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1);
7589 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1);
10190 if (ctxt->validate && ctxt->wellFormed && ctxt->myDoc &&
10191 ctxt->node && (ctxt->node == ctxt->myDoc->children))
10192 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
10899 if ((ctxt->myDoc != NULL) && (ctxt->input != NULL) &&
10901 ctxt->myDoc->compression = ctxt->input->buf->compressed;
10977 if ((ctxt->myDoc != NULL) &&
10978 (xmlStrEqual(ctxt->myDoc->version, SAX_COMPAT_MODE))) {
10979 xmlFreeDoc(ctxt->myDoc);
10980 ctxt->myDoc = NULL;
10983 if ((ctxt->wellFormed) && (ctxt->myDoc != NULL)) {
10984 ctxt->myDoc->properties |= XML_DOC_WELLFORMED;
10986 ctxt->myDoc->properties |= XML_DOC_DTDVALID;
10988 ctxt->myDoc->properties |= XML_DOC_NSVALID;
10990 ctxt->myDoc->properties |= XML_DOC_OLD10;
11611 if (ctxt->validate && ctxt->wellFormed && ctxt->myDoc &&
11612 ctxt->node && (ctxt->node == ctxt->myDoc->children))
11613 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
12885 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0");
12886 if (ctxt->myDoc == NULL) {
12890 ctxt->myDoc->properties = XML_DOC_INTERNAL;
12891 ctxt->myDoc->extSubset = xmlNewDtd(ctxt->myDoc, BAD_CAST "none",
12913 if (ctxt->myDoc != NULL) {
12915 ret = ctxt->myDoc->extSubset;
12916 ctxt->myDoc->extSubset = NULL;
12930 xmlFreeDoc(ctxt->myDoc);
12931 ctxt->myDoc = NULL;
13032 ctxt->myDoc = xmlNewDoc(BAD_CAST "1.0");
13033 if (ctxt->myDoc == NULL) {
13039 ctxt->myDoc->properties = XML_DOC_INTERNAL;
13040 ctxt->myDoc->extSubset = xmlNewDtd(ctxt->myDoc, BAD_CAST "none",
13044 if (ctxt->myDoc != NULL) {
13046 ret = ctxt->myDoc->extSubset;
13047 ctxt->myDoc->extSubset = NULL;
13061 xmlFreeDoc(ctxt->myDoc);
13062 ctxt->myDoc = NULL;
13132 if (ctx->myDoc == NULL) /* @@ relax but check for dereferences */
13149 if (ctx->myDoc->dict) {
13150 newDoc->dict = ctx->myDoc->dict;
13153 if (ctx->myDoc != NULL) {
13154 newDoc->intSubset = ctx->myDoc->intSubset;
13155 newDoc->extSubset = ctx->myDoc->extSubset;
13157 if (ctx->myDoc->URL != NULL) {
13158 newDoc->URL = xmlStrdup(ctx->myDoc->URL);
13171 if (ctx->myDoc == NULL) {
13172 ctxt->myDoc = newDoc;
13174 ctxt->myDoc = ctx->myDoc;
13175 newDoc->children->doc = ctx->myDoc;
13403 ctxt->myDoc = doc;
13637 if (oldctxt->myDoc == NULL) {
13648 ctxt->myDoc = newDoc;
13650 ctxt->myDoc = oldctxt->myDoc;
13651 content = ctxt->myDoc->children;
13652 last = ctxt->myDoc->last;
13654 newRoot = xmlNewDocNode(ctxt->myDoc, NULL, BAD_CAST "pseudoroot", NULL);
13664 ctxt->myDoc->children = NULL;
13665 ctxt->myDoc->last = NULL;
13666 xmlAddChild((xmlNodePtr) ctxt->myDoc, newRoot);
13667 nodePush(ctxt, ctxt->myDoc->children);
13689 if (ctxt->node != ctxt->myDoc->children) {
13709 cur = ctxt->myDoc->children->children;
13714 (oldctxt->myDoc) && (oldctxt->myDoc->intSubset) &&
13717 oldctxt->myDoc, cur);
13723 ctxt->myDoc->children->children = NULL;
13725 if (ctxt->myDoc != NULL) {
13726 xmlFreeNode(ctxt->myDoc->children);
13727 ctxt->myDoc->children = content;
13728 ctxt->myDoc->last = last;
13870 ctxt->myDoc = doc;
14075 ctxt->myDoc = newDoc;
14077 ctxt->myDoc = newDoc;
14183 ret = ctxt->myDoc;
14186 xmlFreeDoc(ctxt->myDoc);
14187 ctxt->myDoc = NULL;
14414 ret = ctxt->myDoc;
14424 xmlFreeDoc(ctxt->myDoc);
14425 ctxt->myDoc = NULL;
14579 if (ctxt->myDoc != NULL) {
14580 xmlFreeDoc(ctxt->myDoc);
14581 ctxt->myDoc = NULL;
14685 if ((ctxt->wellFormed) || recovery) ret = ctxt->myDoc;
14688 xmlFreeDoc(ctxt->myDoc);
14689 ctxt->myDoc = NULL;
14789 if (ctxt->myDoc != NULL) {
14790 xmlFreeDoc(ctxt->myDoc);
14791 ctxt->myDoc = NULL;
14851 if ((ctxt->wellFormed) || recovery) ret = ctxt->myDoc;
14854 xmlFreeDoc(ctxt->myDoc);
14855 ctxt->myDoc = NULL;
15090 if (ctxt->myDoc != NULL)
15091 xmlFreeDoc(ctxt->myDoc);
15092 ctxt->myDoc = NULL;
15434 ret = ctxt->myDoc;
15437 if (ctxt->myDoc != NULL) {
15438 xmlFreeDoc(ctxt->myDoc);
15441 ctxt->myDoc = NULL;