Lines Matching refs:myDoc
307 if ((ctx == NULL) || (ctxt->myDoc == NULL)) return(0);
308 return(ctxt->myDoc->standalone == 1);
323 if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
324 return(ctxt->myDoc->intSubset != NULL);
339 if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
340 return(ctxt->myDoc->extSubset != NULL);
365 if (ctxt->myDoc == NULL)
367 dtd = xmlGetIntSubset(ctxt->myDoc);
373 ctxt->myDoc->intSubset = NULL;
375 ctxt->myDoc->intSubset =
376 xmlCreateIntSubset(ctxt->myDoc, name, ExternalID, SystemID);
377 if (ctxt->myDoc->intSubset == NULL)
403 (ctxt->wellFormed && ctxt->myDoc))) {
426 xmlNewDtd(ctxt->myDoc, name, ExternalID, SystemID);
571 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->standalone == 1)) {
573 ctxt->myDoc->standalone = 0;
574 ret = xmlGetDocEntity(ctxt->myDoc, name);
575 ctxt->myDoc->standalone = 1;
577 ret = xmlGetDocEntity(ctxt->myDoc, name);
579 ctxt->myDoc->standalone = 0;
580 ret = xmlGetDocEntity(ctxt->myDoc, name);
586 ctxt->myDoc->standalone = 1;
590 ret = xmlGetDocEntity(ctxt->myDoc, name);
646 ret = xmlGetParameterEntity(ctxt->myDoc, name);
676 ent = xmlAddDocEntity(ctxt->myDoc, name, type, publicId,
695 ent = xmlAddDtdEntity(ctxt->myDoc, name, type, publicId,
741 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
763 attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, elem,
767 attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, elem,
781 (ctxt->myDoc->intSubset != NULL))
782 ctxt->valid &= xmlValidateAttributeDecl(&ctxt->vctxt, ctxt->myDoc,
807 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
816 elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->intSubset,
819 elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->extSubset,
831 ctxt->myDoc && ctxt->myDoc->intSubset)
833 xmlValidateElementDecl(&ctxt->vctxt, ctxt->myDoc, elem);
853 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
867 nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, name,
870 nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, name,
881 (ctxt->myDoc->intSubset != NULL))
882 ctxt->valid &= xmlValidateNotationDecl(&ctxt->vctxt, ctxt->myDoc,
911 ent = xmlAddDocEntity(ctxt->myDoc, name,
931 ent = xmlAddDtdEntity(ctxt->myDoc, name,
995 if (ctxt->myDoc == NULL)
996 ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL);
997 if (ctxt->myDoc == NULL) {
1001 ctxt->myDoc->properties = XML_DOC_HTML;
1002 ctxt->myDoc->parseFlags = ctxt->options;
1012 doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
1032 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) &&
1034 ctxt->myDoc->URL = xmlPathToURI((const xmlChar *)ctxt->input->filename);
1035 if (ctxt->myDoc->URL == NULL)
1057 ctxt->myDoc && ctxt->myDoc->intSubset)
1058 ctxt->valid &= xmlValidateDocumentFinal(&ctxt->vctxt, ctxt->myDoc);
1064 if ((ctxt->encoding != NULL) && (ctxt->myDoc != NULL) &&
1065 (ctxt->myDoc->encoding == NULL)) {
1066 ctxt->myDoc->encoding = ctxt->encoding;
1071 (ctxt->inputTab[0]->encoding != NULL) && (ctxt->myDoc != NULL) &&
1072 (ctxt->myDoc->encoding == NULL)) {
1073 ctxt->myDoc->encoding = xmlStrdup(ctxt->inputTab[0]->encoding);
1075 if ((ctxt->charset != XML_CHAR_ENCODING_NONE) && (ctxt->myDoc != NULL) &&
1076 (ctxt->myDoc->charset == XML_CHAR_ENCODING_NONE)) {
1077 ctxt->myDoc->charset = ctxt->charset;
1154 ctxt->myDoc, ctxt->node,
1217 ctxt->myDoc && ctxt->myDoc->intSubset)
1218 ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
1280 ctxt->myDoc && ctxt->myDoc->intSubset)
1281 ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
1294 namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, ns);
1331 ret->children = xmlStringGetNodeList(ctxt->myDoc, value);
1340 ret->children = xmlNewDocText(ctxt->myDoc, value);
1349 ctxt->myDoc && ctxt->myDoc->intSubset) {
1365 ctxt->myDoc, ctxt->node, ret, value);
1374 nvalnorm = xmlValidNormalizeAttributeValue(ctxt->myDoc,
1382 ctxt->myDoc, ctxt->node, ret, val);
1386 ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, ctxt->myDoc,
1409 xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret);
1410 } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret))
1411 xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret);
1412 else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret))
1413 xmlAddRef(&ctxt->vctxt, ctxt->myDoc, value, ret);
1436 elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->intSubset, name, prefix);
1438 elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset, name, prefix);
1450 if ((ctxt->myDoc->standalone == 1) &&
1451 (ctxt->myDoc->extSubset != NULL) &&
1455 (xmlGetDtdQAttrDesc(ctxt->myDoc->extSubset,
1458 (xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset,
1528 tst = xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset,
1568 elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset,
1597 if ((ctx == NULL) || (fullname == NULL) || (ctxt->myDoc == NULL)) return;
1607 if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
1608 ((ctxt->myDoc->intSubset == NULL) ||
1609 ((ctxt->myDoc->intSubset->notations == NULL) &&
1610 (ctxt->myDoc->intSubset->elements == NULL) &&
1611 (ctxt->myDoc->intSubset->attributes == NULL) &&
1612 (ctxt->myDoc->intSubset->entities == NULL)))) {
1630 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, name, NULL);
1637 if (ctxt->myDoc->children == NULL) {
1641 xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
1643 parent = ctxt->myDoc->children;
1687 ((ctxt->myDoc->intSubset != NULL) ||
1688 (ctxt->myDoc->extSubset != NULL))) {
1715 ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
1717 ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
1769 chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);
1774 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
1817 ctxt->myDoc && ctxt->myDoc->intSubset)
1818 ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc,
1981 namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, prefix);
1994 ret->doc = ctxt->myDoc;
2044 ret->children = xmlStringLenGetNodeList(ctxt->myDoc, value,
2069 ctxt->myDoc && ctxt->myDoc->intSubset) {
2079 ctxt->myDoc, ctxt->node, ret, value);
2089 ctxt->myDoc, ctxt->node, ret, dup);
2108 &ctxt->vctxt, ctxt->myDoc,
2123 ctxt->myDoc, ctxt->node, ret, dup);
2133 ctxt->myDoc, ctxt->node, ret, dup);
2163 xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret);
2164 } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret)) {
2168 xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret);
2169 } else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret)) {
2172 xmlAddRef(&ctxt->vctxt, ctxt->myDoc, dup, ret);
2220 if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
2221 ((ctxt->myDoc->intSubset == NULL) ||
2222 ((ctxt->myDoc->intSubset->notations == NULL) &&
2223 (ctxt->myDoc->intSubset->elements == NULL) &&
2224 (ctxt->myDoc->intSubset->attributes == NULL) &&
2225 (ctxt->myDoc->intSubset->entities == NULL)))) {
2271 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
2274 ret = xmlNewDocNode(ctxt->myDoc, NULL, localname, NULL);
2276 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
2293 xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
2321 ctxt->myDoc && ctxt->myDoc->intSubset) {
2322 ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
2357 ret->ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
2359 ret->ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
2422 chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);
2427 ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
2466 ctxt->myDoc && ctxt->myDoc->intSubset)
2467 ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc, cur);
2495 ret = xmlNewCharRef(ctxt->myDoc, name);
2497 ret = xmlNewReference(ctxt->myDoc, name);
2676 ret = xmlNewDocPI(ctxt->myDoc, target, data);
2688 xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret);
2691 xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret);
2699 xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
2737 ret = xmlNewDocComment(ctxt->myDoc, value);
2749 xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret);
2752 xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret);
2760 xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
2807 ret = xmlNewCDataBlock(ctxt->myDoc, value, len);