Lines Matching defs:doc
52 xmlNsPtr xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns);
830 * @doc: the document pointer
841 xmlNewDtd(xmlDocPtr doc, const xmlChar *name,
845 if ((doc != NULL) && (doc->extSubset != NULL)) {
849 /* !!! */ (char *) name, doc->name,
850 /* !!! */ (char *)doc->extSubset->name);
872 if (doc != NULL)
873 doc->extSubset = cur;
874 cur->doc = doc;
883 * @doc: the document pointer
890 xmlGetIntSubset(xmlDocPtr doc) {
893 if (doc == NULL)
895 cur = doc->children;
901 return((xmlDtdPtr) doc->intSubset);
906 * @doc: the document pointer
915 xmlCreateIntSubset(xmlDocPtr doc, const xmlChar *name,
919 if ((doc != NULL) && (xmlGetIntSubset(doc) != NULL)) {
924 doc->name);
970 if (doc != NULL) {
971 doc->intSubset = cur;
972 cur->parent = doc;
973 cur->doc = doc;
974 if (doc->children == NULL) {
975 doc->children = (xmlNodePtr) cur;
976 doc->last = (xmlNodePtr) cur;
978 if (doc->type == XML_HTML_DOCUMENT_NODE) {
981 prev = doc->children;
984 doc->children = (xmlNodePtr) cur;
988 next = doc->children;
992 cur->prev = doc->last;
995 doc->last = (xmlNodePtr) cur;
1000 doc->children = (xmlNodePtr) cur;
1075 if (cur->doc != NULL) dict = cur->doc->dict;
1138 xmlTreeErrMemory("building doc");
1146 xmlTreeErrMemory("building doc");
1152 cur->doc = cur;
1229 * @doc: the document
1238 xmlStringLenGetNodeList(xmlDocPtr doc, const xmlChar *value, int len) {
1261 node = xmlNewDocTextLen(doc, q, cur - q);
1287 xmlTreeErr(XML_TREE_INVALID_HEX, (xmlNodePtr) doc,
1311 xmlTreeErr(XML_TREE_INVALID_DEC, (xmlNodePtr) doc,
1333 xmlTreeErr(XML_TREE_UNTERMINATED_ENTITY, (xmlNodePtr) doc,
1342 ent = xmlGetDocEntity(doc, val);
1346 node = xmlNewDocText(doc, ent->content);
1349 node = xmlNewDocText(doc, ent->content);
1358 node = xmlNewReference(doc, val);
1366 ent->children = xmlStringGetNodeList(doc,
1393 node = xmlNewDocText(doc, buf);
1413 node = xmlNewDocTextLen(doc, q, cur - q);
1427 * @doc: the document
1435 xmlStringGetNodeList(xmlDocPtr doc, const xmlChar *value) {
1458 node = xmlNewDocTextLen(doc, q, cur - q);
1481 xmlTreeErr(XML_TREE_INVALID_HEX, (xmlNodePtr) doc,
1499 xmlTreeErr(XML_TREE_INVALID_DEC, (xmlNodePtr) doc,
1519 (xmlNodePtr) doc, (const char *) q);
1527 ent = xmlGetDocEntity(doc, val);
1531 node = xmlNewDocText(doc, ent->content);
1534 node = xmlNewDocText(doc, ent->content);
1543 node = xmlNewReference(doc, val);
1551 ent->children = xmlStringGetNodeList(doc,
1577 node = xmlNewDocText(doc, buf);
1598 node = xmlNewDocTextLen(doc, q, cur - q);
1612 * @doc: the document
1622 xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int inLine)
1639 buffer = xmlEncodeEntitiesReentrant(doc, node->content);
1647 ent = xmlGetDocEntity(doc, node->name);
1658 buffer = xmlNodeListGetString(doc, ent->children, 1);
1693 * @doc: the document
1704 xmlNodeListGetRawString(xmlDocPtr doc, xmlNodePtr list, int inLine)
1721 buffer = xmlEncodeSpecialChars(doc, node->content);
1729 ent = xmlGetDocEntity(doc, node->name);
1741 xmlNodeListGetRawString(doc, ent->children, 1);
1780 xmlDocPtr doc = NULL;
1803 doc = node->doc;
1804 cur->doc = doc;
1809 if ((doc != NULL) && (doc->dict != NULL))
1810 cur->name = (xmlChar *) xmlDictLookup(doc->dict, name, -1);
1820 buffer = xmlEncodeEntitiesReentrant(doc, value);
1821 cur->children = xmlStringGetNodeList(doc, buffer);
1849 if (xmlIsID((node == NULL) ? NULL : node->doc, node, cur) == 1)
1850 xmlAddID(NULL, node->doc, value, cur);
1935 * @doc: the document
1943 xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value) {
1965 if ((doc != NULL) && (doc->dict != NULL))
1966 cur->name = xmlDictLookup(doc->dict, name, -1);
1969 cur->doc = doc;
1973 cur->children = xmlStringGetNodeList(doc, value);
2018 if (cur->doc != NULL) dict = cur->doc->dict;
2024 if ((cur->doc != NULL) && (cur->atype == XML_ATTRIBUTE_ID)) {
2025 xmlRemoveID(cur->doc, cur);
2085 * @doc: the target document
2093 xmlNewDocPI(xmlDocPtr doc, const xmlChar *name, const xmlChar *content) {
2115 if ((doc != NULL) && (doc->dict != NULL))
2116 cur->name = xmlDictLookup(doc->dict, name, -1);
2122 cur->doc = doc;
2230 * @doc: the document
2245 xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns,
2249 if ((doc != NULL) && (doc->dict != NULL))
2251 xmlDictLookup(doc->dict, name, -1));
2255 cur->doc = doc;
2257 cur->children = xmlStringGetNodeList(doc, content);
2267 * @doc: the document
2282 xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns,
2288 cur->doc = doc;
2290 cur->children = xmlStringGetNodeList(doc, content);
2300 * @doc: the document
2311 xmlNewDocRawNode(xmlDocPtr doc, xmlNsPtr ns,
2315 cur = xmlNewDocNode(doc, ns, name, NULL);
2317 cur->doc = doc;
2319 cur->children = xmlNewDocText(doc, content);
2328 * @doc: the document owning the fragment
2334 xmlNewDocFragment(xmlDocPtr doc) {
2348 cur->doc = doc;
2434 cur = xmlNewDocRawNode(parent->doc, parent->ns, name, content);
2436 cur = xmlNewDocRawNode(parent->doc, ns, name, content);
2444 cur = xmlNewDocRawNode( parent->doc, ns, name, content);
2455 cur->doc = parent->doc;
2472 * @doc: the document
2479 xmlNewCharRef(xmlDocPtr doc, const xmlChar *name) {
2496 cur->doc = doc;
2515 * @doc: the document
2522 xmlNewReference(xmlDocPtr doc, const xmlChar *name) {
2540 cur->doc = doc;
2552 ent = xmlGetDocEntity(doc, cur->name);
2571 * @doc: the document
2578 xmlNewDocText(xmlDocPtr doc, const xmlChar *content) {
2582 if (cur != NULL) cur->doc = doc;
2621 * @doc: the document
2630 xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len) {
2634 if (cur != NULL) cur->doc = doc;
2672 * @doc: the document
2680 xmlNewCDataBlock(xmlDocPtr doc, const xmlChar *content, int len) {
2693 cur->doc = doc;
2706 * @doc: the document
2713 xmlNewDocComment(xmlDocPtr doc, const xmlChar *content) {
2717 if (cur != NULL) cur->doc = doc;
2724 * @doc: the document
2729 xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) {
2734 if (tree->doc != doc) {
2738 prop->doc = doc;
2739 xmlSetListDoc(prop->children, doc);
2744 xmlSetListDoc(tree->children, doc);
2745 tree->doc = doc;
2752 * @doc: the document
2757 xmlSetListDoc(xmlNodePtr list, xmlDocPtr doc) {
2764 if (cur->doc != doc)
2765 xmlSetTreeDoc(cur, doc);
2814 cur = xmlNewDocNode(parent->doc, parent->ns, name, content);
2816 cur = xmlNewDocNode(parent->doc, ns, name, content);
2824 cur = xmlNewDocNode( parent->doc, ns, name, content);
2835 cur->doc = parent->doc;
2876 if (prop->doc != cur->doc) {
2877 xmlSetTreeDoc(prop, cur->doc);
2961 if (elem->doc != cur->doc) {
2962 xmlSetTreeDoc(elem, cur->doc);
3039 if (elem->doc != cur->doc) {
3040 xmlSetTreeDoc(elem, cur->doc);
3111 if (elem->doc != cur->doc) {
3112 xmlSetTreeDoc(elem, cur->doc);
3155 if ((cur->doc != NULL) && (parent->doc != NULL) &&
3156 (cur->doc != parent->doc)) {
3194 if (cur->doc != parent->doc) {
3195 xmlSetTreeDoc(cur, parent->doc);
3200 cur->doc = parent->doc; /* the parent may not be linked to a doc ! */
3271 if (cur->doc != parent->doc) {
3272 xmlSetTreeDoc(cur, parent->doc);
3376 if (cur->doc != NULL) dict = cur->doc->dict;
3451 if (cur->doc != NULL) dict = cur->doc->dict;
3504 xmlDocPtr doc;
3505 doc = cur->doc;
3506 if (doc != NULL) {
3507 if (doc->intSubset == (xmlDtdPtr) cur)
3508 doc->intSubset = NULL;
3509 if (doc->extSubset == (xmlDtdPtr) cur)
3510 doc->extSubset = NULL;
3578 xmlSetTreeDoc(cur, old->doc);
3663 xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
3666 xmlCopyPropInternal(xmlDocPtr doc, xmlNodePtr target, xmlAttrPtr cur) {
3671 ret = xmlNewDocProp(target->doc, cur->name, NULL);
3672 else if (doc != NULL)
3673 ret = xmlNewDocProp(doc, cur->name, NULL);
3675 ret = xmlNewDocProp(cur->parent->doc, cur->name, NULL);
3677 ret = xmlNewDocProp(cur->children->doc, cur->name, NULL);
3686 ns = xmlSearchNs(target->doc, target, cur->ns->prefix);
3693 ns = xmlSearchNs(cur->doc, cur->parent, cur->ns->prefix);
3702 if (root == (xmlNodePtr) target->doc) {
3722 ret->ns = xmlNewReconciliedNs(target->doc, target, cur->ns);
3732 ret->children = xmlStaticCopyNodeList(cur->children, ret->doc, (xmlNodePtr) ret);
3746 (target->doc != NULL) && (cur->doc != NULL) &&
3747 (cur->doc->ids != NULL) && (cur->parent != NULL)) {
3748 if (xmlIsID(cur->doc, cur->parent, cur)) {
3751 id = xmlNodeListGetString(cur->doc, cur->children, 1);
3753 xmlAddID(NULL, target->doc, id, ret);
3825 xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
3843 return((xmlNodePtr) xmlCopyPropInternal(doc, parent, (xmlAttrPtr) node));
3875 ret->doc = doc;
3884 if ((doc != NULL) && (doc->dict != NULL))
3885 ret->name = xmlDictLookup(doc->dict, node->name, -1);
3924 ns = xmlSearchNs(doc, ret, node->ns->prefix);
3931 ns = xmlSearchNs(node->doc, node, node->ns->prefix);
3948 if ((doc == NULL) || (node->doc != doc)) {
3955 ret->children = (xmlNodePtr) xmlGetDocEntity(doc, ret->name);
3961 ret->children = xmlStaticCopyNodeList(node->children, doc, ret);
3974 xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent) {
3981 if (doc == NULL) {
3985 if (doc->intSubset == NULL) {
3987 q->doc = doc;
3989 doc->intSubset = (xmlDtdPtr) q;
3992 q = (xmlNodePtr) doc->intSubset;
3997 q = xmlStaticCopyNode(node, doc, parent, 1);
4034 * @doc: the document
4044 xmlDocCopyNode(const xmlNodePtr node, xmlDocPtr doc, int extended) {
4047 ret = xmlStaticCopyNode(node, doc, NULL, extended);
4053 * @doc: the target document
4060 xmlNodePtr xmlDocCopyNodeList(xmlDocPtr doc, const xmlNodePtr node) {
4061 xmlNodePtr ret = xmlStaticCopyNodeList(node, doc, NULL);
4169 * @doc: the document
4178 xmlCopyDoc(xmlDocPtr doc, int recursive) {
4181 if (doc == NULL) return(NULL);
4182 ret = xmlNewDoc(doc->version);
4184 if (doc->name != NULL)
4185 ret->name = xmlMemStrdup(doc->name);
4186 if (doc->encoding != NULL)
4187 ret->encoding = xmlStrdup(doc->encoding);
4188 if (doc->URL != NULL)
4189 ret->URL = xmlStrdup(doc->URL);
4190 ret->charset = doc->charset;
4191 ret->compression = doc->compression;
4192 ret->standalone = doc->standalone;
4198 if (doc->intSubset != NULL) {
4199 ret->intSubset = xmlCopyDtd(doc->intSubset);
4204 if (doc->oldNs != NULL)
4205 ret->oldNs = xmlCopyNamespaceList(doc->oldNs);
4206 if (doc->children != NULL) {
4209 ret->children = xmlStaticCopyNodeList(doc->children, ret,
4512 * @doc: the document
4514 * Get the root element of the document (doc->children is a list
4520 xmlDocGetRootElement(xmlDocPtr doc) {
4523 if (doc == NULL) return(NULL);
4524 ret = doc->children;
4536 * @doc: the document
4540 * Set the root element of the document (doc->children is a list
4546 xmlDocSetRootElement(xmlDocPtr doc, xmlNodePtr root) {
4549 if (doc == NULL) return(NULL);
4553 xmlSetTreeDoc(root, doc);
4554 root->parent = (xmlNodePtr) doc;
4555 old = doc->children;
4562 if (doc->children == NULL) {
4563 doc->children = root;
4564 doc->last = root;
4566 xmlAddSibling(doc->children, root);
4616 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4688 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4744 xmlDocPtr doc;
4776 doc = cur->doc;
4777 if (doc != NULL)
4778 dict = doc->dict;
4833 xmlDocPtr doc = (xmlDocPtr) cur;
4835 if (doc->URL != NULL)
4836 xmlFree((xmlChar *) doc->URL);
4838 doc->URL = NULL;
4840 doc->URL = xmlPathToURI(uri);
4845 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4860 * @doc: the document the node pertains to
4876 xmlNodeGetBase(xmlDocPtr doc, xmlNodePtr cur) {
4880 if ((cur == NULL) && (doc == NULL))
4882 if (doc == NULL) doc = cur->doc;
4883 if ((doc != NULL) && (doc->type == XML_HTML_DOCUMENT_NODE)) {
4884 cur = doc->children;
4935 if ((doc != NULL) && (doc->URL != NULL)) {
4937 return(xmlStrdup(doc->URL));
4938 newbase = xmlBuildURI(oldbase, doc->URL);
5039 ent = xmlGetDocEntity(cur->doc, cur->name);
5131 ent = xmlGetDocEntity(cur->doc, cur->name);
5217 cur->children = xmlStringGetNodeList(cur->doc, content);
5228 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5229 (xmlDictOwns(cur->doc->dict, cur->content))))
5291 cur->children = xmlStringLenGetNodeList(cur->doc, content, len);
5303 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5304 (xmlDictOwns(cur->doc->dict, cur->content))))
5386 ((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5387 xmlDictOwns(cur->doc->dict, cur->content))) {
5461 * @doc: the document
5470 xmlGetNsList(xmlDocPtr doc ATTRIBUTE_UNUSED, xmlNodePtr node)
5524 * @doc: the doc
5526 * Ensures that there is an XML namespace declaration on the doc.
5531 xmlTreeEnsureXMLDecl(xmlDocPtr doc)
5533 if (doc == NULL)
5535 if (doc->oldNs != NULL)
5536 return (doc->oldNs);
5549 doc->oldNs = ns;
5556 * @doc: the document
5571 xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
5579 if ((doc == NULL) && (node->type == XML_ELEMENT_NODE)) {
5598 if (doc == NULL) {
5599 doc = node->doc;
5600 if (doc == NULL)
5604 * Return the XML namespace declaration held by the doc.
5606 if (doc->oldNs == NULL)
5607 return(xmlTreeEnsureXMLDecl(doc));
5609 return(doc->oldNs);
5648 * @doc: the document
5659 xmlNsInScope(xmlDocPtr doc ATTRIBUTE_UNUSED, xmlNodePtr node,
5691 * @doc: the document
5700 xmlSearchNsByHref(xmlDocPtr doc, xmlNodePtr node, const xmlChar * href)
5712 if ((doc == NULL) && (node->type == XML_ELEMENT_NODE)) {
5731 if (doc == NULL) {
5732 doc = node->doc;
5733 if (doc == NULL)
5737 * Return the XML namespace declaration held by the doc.
5739 if (doc->oldNs == NULL)
5740 return(xmlTreeEnsureXMLDecl(doc));
5742 return(doc->oldNs);
5756 (xmlNsInScope(doc, orig, node, cur->prefix) == 1))
5767 (xmlNsInScope(doc, orig, node, cur->prefix) == 1))
5780 * @doc: the document
5792 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns) {
5814 def = xmlSearchNsByHref(doc, tree, ns->href);
5827 def = xmlSearchNs(doc, tree, prefix);
5835 def = xmlSearchNs(doc, tree, prefix);
5848 * @doc: the document
5861 xmlReconciliateNs(xmlDocPtr doc, xmlNodePtr tree) {
5873 if ((doc == NULL) || (doc->type != XML_DOCUMENT_NODE)) return(-1);
5874 if (node->doc != doc) return(-1);
5909 n = xmlNewReconciliedNs(doc, tree, node->ns);
5973 n = xmlNewReconciliedNs(doc, tree, attr->ns);
6086 if ((node->doc != NULL) && (node->doc->intSubset != NULL)) {
6087 xmlDocPtr doc = node->doc;
6107 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset,
6109 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
6110 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset,
6120 nsList = xmlGetNsList(node->doc, node);
6129 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elemQName,
6133 if (doc->extSubset != NULL) {
6134 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elemQName,
6178 ret = xmlNodeListGetString(prop->doc, prop->children, 1);
6205 xmlDocPtr doc;
6225 doc = node->doc;
6226 if (doc != NULL) {
6228 if (doc->intSubset != NULL) {
6229 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
6230 if ((attrDecl == NULL) && (doc->extSubset != NULL))
6231 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
6413 ns = xmlSearchNs(node->doc, node, prefix);
6448 xmlRemoveID(node->doc, prop);
6460 buffer = xmlEncodeEntitiesReentrant(node->doc, value);
6461 prop->children = xmlStringGetNodeList(node->doc, buffer);
6473 xmlAddID(NULL, node->doc, value, prop);
6553 ((node->doc != NULL) && (node->doc->dict != NULL) &&
6554 xmlDictOwns(node->doc->dict, node->content))) {
7173 * @doc: the document
7179 xmlGetDocCompressMode (xmlDocPtr doc) {
7180 if (doc == NULL) return(-1);
7181 return(doc->compression);
7186 * @doc: the document
7193 xmlSetDocCompressMode (xmlDocPtr doc, int mode) {
7194 if (doc == NULL) return;
7195 if (mode < 0) doc->compression = 0;
7196 else if (mode > 9) doc->compression = 9;
7197 else doc->compression = mode;
7242 * -2 == the doc->oldNs XML ns-decl
7243 * -3 == the doc->oldNs storage ns-decls
7382 * @doc: the doc
7386 * Creates or reuses an xmlNs struct on doc->oldNs with
7393 xmlDOMWrapStoreNs(xmlDocPtr doc,
7399 if (doc == NULL)
7401 ns = xmlTreeEnsureXMLDecl(doc);
7517 while ((cur != NULL) && (cur != (xmlNodePtr) cur->doc)) {
7623 * @doc: the doc
7629 * ns-references to doc->oldNs, thus ensuring the removed
7638 xmlDOMWrapRemoveNode(xmlDOMWrapCtxtPtr ctxt, xmlDocPtr doc,
7645 if ((node == NULL) || (doc == NULL) || (node->doc != doc))
7668 * Save out-of-scope ns-references in doc->oldNs.
7703 * Add to doc's oldNs.
7705 ns = xmlDOMWrapStoreNs(doc, node->ns->href,
7758 * @doc: the document
7771 xmlSearchNsByNamespaceStrict(xmlDocPtr doc, xmlNodePtr node,
7778 if ((doc == NULL) || (nsName == NULL) || (retNs == NULL))
7783 *retNs = xmlTreeEnsureXMLDecl(doc);
7829 ret = xmlNsInScope(doc, node, prev, ns->prefix);
7853 } while ((cur != NULL) && (cur->doc != (xmlDocPtr) cur));
7859 * @doc: the document
7871 xmlSearchNsByPrefixStrict(xmlDocPtr doc, xmlNodePtr node,
7878 if ((doc == NULL) || (node == NULL))
7885 *retNs = xmlTreeEnsureXMLDecl(doc);
7916 } while ((cur != NULL) && (cur->doc != (xmlDocPtr) cur));
7922 * @doc: the doc
7936 xmlDOMWrapNSNormDeclareNsForced(xmlDocPtr doc,
7959 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
7963 if (xmlSearchNsByPrefixStrict(doc, elem->parent, pref, NULL) == 1)
7994 * @doc: the doc
8004 * found it will either declare it on @elem, or store it in doc->oldNs.
8012 xmlDOMWrapNSNormAquireNormalizedNs(xmlDocPtr doc,
8024 if ((doc == NULL) || (ns == NULL) || (retNs == NULL) ||
8036 *retNs = xmlTreeEnsureXMLDecl(doc);
8086 tmpns = xmlDOMWrapStoreNs(doc, ns->href, ns->prefix);
8101 tmpns = xmlDOMWrapNSNormDeclareNsForced(doc, elem, ns->href,
8160 xmlDocPtr doc;
8171 if ((elem == NULL) || (elem->doc == NULL) ||
8175 doc = elem->doc;
8192 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
8276 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
8313 if (xmlDOMWrapNSNormAquireNormalizedNs(doc, curElem,
8399 * @destDoc: the destination doc for adoption
8465 * Paranoid source-doc sanity check.
8467 if (cur->doc != sourceDoc) {
8469 * We'll assume XIncluded nodes if the doc differs.
8479 (cur->doc == node->doc))
8483 if (cur->doc != node->doc)
8486 cur->doc = destDoc;
8757 * @destDoc: the destination doc
8818 * Check node->doc sanity.
8820 if ((node->doc != NULL) && (sourceDoc != NULL) &&
8821 (node->doc != sourceDoc)) {
8828 sourceDoc = node->doc;
8843 if (cur->doc != sourceDoc) {
8845 * We'll assume XIncluded nodes if the doc differs.
8925 clone->doc = destDoc;
9051 * Different doc: Assign new entity-node if available.
9062 * Same doc: Use the current node's entity declaration
9161 idVal = xmlNodeListGetString(cur->doc, cur->children, 1);
9293 * @destDoc: the destination doc for adoption
9318 attr->doc = destDoc;
9360 cur->doc = destDoc;
9413 * @destDoc: the destination doc
9444 ((destParent != NULL) && (destParent->doc != destDoc)))
9447 * Check node->doc sanity.
9449 if ((node->doc != NULL) && (sourceDoc != NULL) &&
9450 (node->doc != sourceDoc)) {
9457 sourceDoc = node->doc;
9491 cur->doc = destDoc;