• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:doc

52 xmlNsPtr xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns);
835 * @doc: the document pointer
846 xmlNewDtd(xmlDocPtr doc, const xmlChar *name,
850 if ((doc != NULL) && (doc->extSubset != NULL)) {
854 /* !!! */ (char *) name, doc->name,
855 /* !!! */ (char *)doc->extSubset->name);
877 if (doc != NULL)
878 doc->extSubset = cur;
879 cur->doc = doc;
888 * @doc: the document pointer
895 xmlGetIntSubset(xmlDocPtr doc) {
898 if (doc == NULL)
900 cur = doc->children;
906 return((xmlDtdPtr) doc->intSubset);
911 * @doc: the document pointer
920 xmlCreateIntSubset(xmlDocPtr doc, const xmlChar *name,
924 if ((doc != NULL) && (xmlGetIntSubset(doc) != NULL)) {
929 doc->name);
975 if (doc != NULL) {
976 doc->intSubset = cur;
977 cur->parent = doc;
978 cur->doc = doc;
979 if (doc->children == NULL) {
980 doc->children = (xmlNodePtr) cur;
981 doc->last = (xmlNodePtr) cur;
983 if (doc->type == XML_HTML_DOCUMENT_NODE) {
986 prev = doc->children;
989 doc->children = (xmlNodePtr) cur;
993 next = doc->children;
997 cur->prev = doc->last;
1000 doc->last = (xmlNodePtr) cur;
1005 doc->children = (xmlNodePtr) cur;
1080 if (cur->doc != NULL) dict = cur->doc->dict;
1143 xmlTreeErrMemory("building doc");
1151 xmlTreeErrMemory("building doc");
1157 cur->doc = cur;
1236 * @doc: the document
1245 xmlStringLenGetNodeList(xmlDocPtr doc, const xmlChar *value, int len) {
1268 node = xmlNewDocTextLen(doc, q, cur - q);
1294 xmlTreeErr(XML_TREE_INVALID_HEX, (xmlNodePtr) doc,
1318 xmlTreeErr(XML_TREE_INVALID_DEC, (xmlNodePtr) doc,
1340 xmlTreeErr(XML_TREE_UNTERMINATED_ENTITY, (xmlNodePtr) doc,
1349 ent = xmlGetDocEntity(doc, val);
1353 node = xmlNewDocText(doc, ent->content);
1356 node = xmlNewDocText(doc, ent->content);
1365 node = xmlNewReference(doc, val);
1373 ent->children = xmlStringGetNodeList(doc,
1400 node = xmlNewDocText(doc, buf);
1420 node = xmlNewDocTextLen(doc, q, cur - q);
1434 * @doc: the document
1442 xmlStringGetNodeList(xmlDocPtr doc, const xmlChar *value) {
1465 node = xmlNewDocTextLen(doc, q, cur - q);
1488 xmlTreeErr(XML_TREE_INVALID_HEX, (xmlNodePtr) doc,
1506 xmlTreeErr(XML_TREE_INVALID_DEC, (xmlNodePtr) doc,
1526 (xmlNodePtr) doc, (const char *) q);
1534 ent = xmlGetDocEntity(doc, val);
1538 node = xmlNewDocText(doc, ent->content);
1541 node = xmlNewDocText(doc, ent->content);
1550 node = xmlNewReference(doc, val);
1558 ent->children = xmlStringGetNodeList(doc,
1584 node = xmlNewDocText(doc, buf);
1605 node = xmlNewDocTextLen(doc, q, cur - q);
1619 * @doc: the document
1629 xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int inLine)
1646 buffer = xmlEncodeEntitiesReentrant(doc, node->content);
1654 ent = xmlGetDocEntity(doc, node->name);
1665 buffer = xmlNodeListGetString(doc, ent->children, 1);
1700 * @doc: the document
1711 xmlNodeListGetRawString(xmlDocPtr doc, xmlNodePtr list, int inLine)
1728 buffer = xmlEncodeSpecialChars(doc, node->content);
1736 ent = xmlGetDocEntity(doc, node->name);
1748 xmlNodeListGetRawString(doc, ent->children, 1);
1787 xmlDocPtr doc = NULL;
1791 ((node->doc == NULL) ||
1792 (!(xmlDictOwns(node->doc->dict, name)))))
1803 ((node->doc == NULL) ||
1804 (!(xmlDictOwns(node->doc->dict, name)))))
1814 doc = node->doc;
1815 cur->doc = doc;
1820 if ((doc != NULL) && (doc->dict != NULL))
1821 cur->name = (xmlChar *) xmlDictLookup(doc->dict, name, -1);
1831 xmlTreeErr(XML_TREE_NOT_UTF8, (xmlNodePtr) doc,
1833 if (doc != NULL)
1834 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
1836 cur->children = xmlNewDocText(doc, value);
1863 if (xmlIsID((node == NULL) ? NULL : node->doc, node, cur) == 1)
1864 xmlAddID(NULL, node->doc, value, cur);
1949 * @doc: the document
1957 xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value) {
1979 if ((doc != NULL) && (doc->dict != NULL))
1980 cur->name = xmlDictLookup(doc->dict, name, -1);
1983 cur->doc = doc;
1987 cur->children = xmlStringGetNodeList(doc, value);
2032 if (cur->doc != NULL) dict = cur->doc->dict;
2038 if ((cur->doc != NULL) && (cur->atype == XML_ATTRIBUTE_ID)) {
2039 xmlRemoveID(cur->doc, cur);
2099 * @doc: the target document
2107 xmlNewDocPI(xmlDocPtr doc, const xmlChar *name, const xmlChar *content) {
2129 if ((doc != NULL) && (doc->dict != NULL))
2130 cur->name = xmlDictLookup(doc->dict, name, -1);
2136 cur->doc = doc;
2228 /* we can't check here that name comes from the doc dictionnary */
2244 * @doc: the document
2259 xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns,
2263 if ((doc != NULL) && (doc->dict != NULL))
2265 xmlDictLookup(doc->dict, name, -1));
2269 cur->doc = doc;
2271 cur->children = xmlStringGetNodeList(doc, content);
2281 * @doc: the document
2296 xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns,
2302 cur->doc = doc;
2304 cur->children = xmlStringGetNodeList(doc, content);
2308 /* if name don't come from the doc dictionnary free it here */
2309 if ((name != NULL) && (doc != NULL) &&
2310 (!(xmlDictOwns(doc->dict, name))))
2319 * @doc: the document
2330 xmlNewDocRawNode(xmlDocPtr doc, xmlNsPtr ns,
2334 cur = xmlNewDocNode(doc, ns, name, NULL);
2336 cur->doc = doc;
2338 cur->children = xmlNewDocText(doc, content);
2347 * @doc: the document owning the fragment
2353 xmlNewDocFragment(xmlDocPtr doc) {
2367 cur->doc = doc;
2453 cur = xmlNewDocRawNode(parent->doc, parent->ns, name, content);
2455 cur = xmlNewDocRawNode(parent->doc, ns, name, content);
2463 cur = xmlNewDocRawNode( parent->doc, ns, name, content);
2474 cur->doc = parent->doc;
2491 * @doc: the document
2498 xmlNewCharRef(xmlDocPtr doc, const xmlChar *name) {
2515 cur->doc = doc;
2534 * @doc: the document
2541 xmlNewReference(xmlDocPtr doc, const xmlChar *name) {
2559 cur->doc = doc;
2571 ent = xmlGetDocEntity(doc, cur->name);
2590 * @doc: the document
2597 xmlNewDocText(xmlDocPtr doc, const xmlChar *content) {
2601 if (cur != NULL) cur->doc = doc;
2640 * @doc: the document
2649 xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len) {
2653 if (cur != NULL) cur->doc = doc;
2691 * @doc: the document
2699 xmlNewCDataBlock(xmlDocPtr doc, const xmlChar *content, int len) {
2712 cur->doc = doc;
2725 * @doc: the document
2732 xmlNewDocComment(xmlDocPtr doc, const xmlChar *content) {
2736 if (cur != NULL) cur->doc = doc;
2743 * @doc: the document
2748 xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) {
2753 if (tree->doc != doc) {
2757 prop->doc = doc;
2758 xmlSetListDoc(prop->children, doc);
2763 xmlSetListDoc(tree->children, doc);
2764 tree->doc = doc;
2771 * @doc: the document
2776 xmlSetListDoc(xmlNodePtr list, xmlDocPtr doc) {
2783 if (cur->doc != doc)
2784 xmlSetTreeDoc(cur, doc);
2833 cur = xmlNewDocNode(parent->doc, parent->ns, name, content);
2835 cur = xmlNewDocNode(parent->doc, ns, name, content);
2843 cur = xmlNewDocNode( parent->doc, ns, name, content);
2854 cur->doc = parent->doc;
2895 if (prop->doc != cur->doc) {
2896 xmlSetTreeDoc(prop, cur->doc);
2980 if (elem->doc != cur->doc) {
2981 xmlSetTreeDoc(elem, cur->doc);
3058 if (elem->doc != cur->doc) {
3059 xmlSetTreeDoc(elem, cur->doc);
3130 if (elem->doc != cur->doc) {
3131 xmlSetTreeDoc(elem, cur->doc);
3174 if ((cur->doc != NULL) && (parent->doc != NULL) &&
3175 (cur->doc != parent->doc)) {
3213 if (cur->doc != parent->doc) {
3214 xmlSetTreeDoc(cur, parent->doc);
3219 cur->doc = parent->doc; /* the parent may not be linked to a doc ! */
3290 if (cur->doc != parent->doc) {
3291 xmlSetTreeDoc(cur, parent->doc);
3395 if (cur->doc != NULL) dict = cur->doc->dict;
3470 if (cur->doc != NULL) dict = cur->doc->dict;
3528 xmlDocPtr doc;
3529 doc = cur->doc;
3530 if (doc != NULL) {
3531 if (doc->intSubset == (xmlDtdPtr) cur)
3532 doc->intSubset = NULL;
3533 if (doc->extSubset == (xmlDtdPtr) cur)
3534 doc->extSubset = NULL;
3538 xmlDocPtr doc;
3539 doc = cur->doc;
3540 if (doc != NULL) {
3541 if (doc->intSubset != NULL) {
3542 if (xmlHashLookup(doc->intSubset->entities, cur->name) == cur)
3543 xmlHashRemoveEntry(doc->intSubset->entities, cur->name,
3545 if (xmlHashLookup(doc->intSubset->pentities, cur->name) == cur)
3546 xmlHashRemoveEntry(doc->intSubset->pentities, cur->name,
3549 if (doc->extSubset != NULL) {
3550 if (xmlHashLookup(doc->extSubset->entities, cur->name) == cur)
3551 xmlHashRemoveEntry(doc->extSubset->entities, cur->name,
3553 if (xmlHashLookup(doc->extSubset->pentities, cur->name) == cur)
3554 xmlHashRemoveEntry(doc->extSubset->pentities, cur->name,
3624 xmlSetTreeDoc(cur, old->doc);
3709 xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
3712 xmlCopyPropInternal(xmlDocPtr doc, xmlNodePtr target, xmlAttrPtr cur) {
3717 ret = xmlNewDocProp(target->doc, cur->name, NULL);
3718 else if (doc != NULL)
3719 ret = xmlNewDocProp(doc, cur->name, NULL);
3721 ret = xmlNewDocProp(cur->parent->doc, cur->name, NULL);
3723 ret = xmlNewDocProp(cur->children->doc, cur->name, NULL);
3732 ns = xmlSearchNs(target->doc, target, cur->ns->prefix);
3739 ns = xmlSearchNs(cur->doc, cur->parent, cur->ns->prefix);
3748 if (root == (xmlNodePtr) target->doc) {
3768 ret->ns = xmlNewReconciliedNs(target->doc, target, cur->ns);
3778 ret->children = xmlStaticCopyNodeList(cur->children, ret->doc, (xmlNodePtr) ret);
3792 (target->doc != NULL) && (cur->doc != NULL) &&
3793 (cur->doc->ids != NULL) && (cur->parent != NULL)) {
3794 if (xmlIsID(cur->doc, cur->parent, cur)) {
3797 id = xmlNodeListGetString(cur->doc, cur->children, 1);
3799 xmlAddID(NULL, target->doc, id, ret);
3871 xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
3889 return((xmlNodePtr) xmlCopyPropInternal(doc, parent, (xmlAttrPtr) node));
3921 ret->doc = doc;
3930 if ((doc != NULL) && (doc->dict != NULL))
3931 ret->name = xmlDictLookup(doc->dict, node->name, -1);
3970 ns = xmlSearchNs(doc, ret, node->ns->prefix);
3977 ns = xmlSearchNs(node->doc, node, node->ns->prefix);
3994 if ((doc == NULL) || (node->doc != doc)) {
4001 ret->children = (xmlNodePtr) xmlGetDocEntity(doc, ret->name);
4007 ret->children = xmlStaticCopyNodeList(node->children, doc, ret);
4020 xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent) {
4027 if (doc == NULL) {
4031 if (doc->intSubset == NULL) {
4033 q->doc = doc;
4035 doc->intSubset = (xmlDtdPtr) q;
4038 q = (xmlNodePtr) doc->intSubset;
4043 q = xmlStaticCopyNode(node, doc, parent, 1);
4080 * @doc: the document
4090 xmlDocCopyNode(const xmlNodePtr node, xmlDocPtr doc, int extended) {
4093 ret = xmlStaticCopyNode(node, doc, NULL, extended);
4099 * @doc: the target document
4106 xmlNodePtr xmlDocCopyNodeList(xmlDocPtr doc, const xmlNodePtr node) {
4107 xmlNodePtr ret = xmlStaticCopyNodeList(node, doc, NULL);
4215 * @doc: the document
4224 xmlCopyDoc(xmlDocPtr doc, int recursive) {
4227 if (doc == NULL) return(NULL);
4228 ret = xmlNewDoc(doc->version);
4230 if (doc->name != NULL)
4231 ret->name = xmlMemStrdup(doc->name);
4232 if (doc->encoding != NULL)
4233 ret->encoding = xmlStrdup(doc->encoding);
4234 if (doc->URL != NULL)
4235 ret->URL = xmlStrdup(doc->URL);
4236 ret->charset = doc->charset;
4237 ret->compression = doc->compression;
4238 ret->standalone = doc->standalone;
4244 if (doc->intSubset != NULL) {
4245 ret->intSubset = xmlCopyDtd(doc->intSubset);
4250 if (doc->oldNs != NULL)
4251 ret->oldNs = xmlCopyNamespaceList(doc->oldNs);
4252 if (doc->children != NULL) {
4255 ret->children = xmlStaticCopyNodeList(doc->children, ret,
4558 * @doc: the document
4560 * Get the root element of the document (doc->children is a list
4566 xmlDocGetRootElement(xmlDocPtr doc) {
4569 if (doc == NULL) return(NULL);
4570 ret = doc->children;
4582 * @doc: the document
4586 * Set the root element of the document (doc->children is a list
4592 xmlDocSetRootElement(xmlDocPtr doc, xmlNodePtr root) {
4595 if (doc == NULL) return(NULL);
4599 xmlSetTreeDoc(root, doc);
4600 root->parent = (xmlNodePtr) doc;
4601 old = doc->children;
4608 if (doc->children == NULL) {
4609 doc->children = root;
4610 doc->last = root;
4612 xmlAddSibling(doc->children, root);
4662 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4734 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4790 xmlDocPtr doc;
4822 doc = cur->doc;
4823 if (doc != NULL)
4824 dict = doc->dict;
4879 xmlDocPtr doc = (xmlDocPtr) cur;
4881 if (doc->URL != NULL)
4882 xmlFree((xmlChar *) doc->URL);
4884 doc->URL = NULL;
4886 doc->URL = xmlPathToURI(uri);
4891 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE);
4906 * @doc: the document the node pertains to
4922 xmlNodeGetBase(xmlDocPtr doc, xmlNodePtr cur) {
4926 if ((cur == NULL) && (doc == NULL))
4928 if (doc == NULL) doc = cur->doc;
4929 if ((doc != NULL) && (doc->type == XML_HTML_DOCUMENT_NODE)) {
4930 cur = doc->children;
4981 if ((doc != NULL) && (doc->URL != NULL)) {
4983 return(xmlStrdup(doc->URL));
4984 newbase = xmlBuildURI(oldbase, doc->URL);
5085 ent = xmlGetDocEntity(cur->doc, cur->name);
5177 ent = xmlGetDocEntity(cur->doc, cur->name);
5266 cur->children = xmlStringGetNodeList(cur->doc, content);
5277 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5278 (xmlDictOwns(cur->doc->dict, cur->content))))
5343 cur->children = xmlStringLenGetNodeList(cur->doc, content, len);
5355 if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5356 (xmlDictOwns(cur->doc->dict, cur->content))))
5441 ((cur->doc != NULL) && (cur->doc->dict != NULL) &&
5442 xmlDictOwns(cur->doc->dict, cur->content))) {
5519 * @doc: the document
5528 xmlGetNsList(xmlDocPtr doc ATTRIBUTE_UNUSED, xmlNodePtr node)
5582 * @doc: the doc
5584 * Ensures that there is an XML namespace declaration on the doc.
5589 xmlTreeEnsureXMLDecl(xmlDocPtr doc)
5591 if (doc == NULL)
5593 if (doc->oldNs != NULL)
5594 return (doc->oldNs);
5607 doc->oldNs = ns;
5614 * @doc: the document
5629 xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
5637 if ((doc == NULL) && (node->type == XML_ELEMENT_NODE)) {
5656 if (doc == NULL) {
5657 doc = node->doc;
5658 if (doc == NULL)
5662 * Return the XML namespace declaration held by the doc.
5664 if (doc->oldNs == NULL)
5665 return(xmlTreeEnsureXMLDecl(doc));
5667 return(doc->oldNs);
5706 * @doc: the document
5717 xmlNsInScope(xmlDocPtr doc ATTRIBUTE_UNUSED, xmlNodePtr node,
5749 * @doc: the document
5758 xmlSearchNsByHref(xmlDocPtr doc, xmlNodePtr node, const xmlChar * href)
5770 if ((doc == NULL) && (node->type == XML_ELEMENT_NODE)) {
5789 if (doc == NULL) {
5790 doc = node->doc;
5791 if (doc == NULL)
5795 * Return the XML namespace declaration held by the doc.
5797 if (doc->oldNs == NULL)
5798 return(xmlTreeEnsureXMLDecl(doc));
5800 return(doc->oldNs);
5814 (xmlNsInScope(doc, orig, node, cur->prefix) == 1))
5825 (xmlNsInScope(doc, orig, node, cur->prefix) == 1))
5838 * @doc: the document
5850 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns) {
5872 def = xmlSearchNsByHref(doc, tree, ns->href);
5885 def = xmlSearchNs(doc, tree, prefix);
5893 def = xmlSearchNs(doc, tree, prefix);
5906 * @doc: the document
5919 xmlReconciliateNs(xmlDocPtr doc, xmlNodePtr tree) {
5931 if ((doc == NULL) || (doc->type != XML_DOCUMENT_NODE)) return(-1);
5932 if (node->doc != doc) return(-1);
5967 n = xmlNewReconciliedNs(doc, tree, node->ns);
6031 n = xmlNewReconciliedNs(doc, tree, attr->ns);
6144 if ((node->doc != NULL) && (node->doc->intSubset != NULL)) {
6145 xmlDocPtr doc = node->doc;
6165 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset,
6167 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
6168 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset,
6178 nsList = xmlGetNsList(node->doc, node);
6187 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elemQName,
6191 if (doc->extSubset != NULL) {
6192 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elemQName,
6236 ret = xmlNodeListGetString(prop->doc, prop->children, 1);
6263 xmlDocPtr doc;
6283 doc = node->doc;
6284 if (doc != NULL) {
6286 if (doc->intSubset != NULL) {
6287 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
6288 if ((attrDecl == NULL) && (doc->extSubset != NULL))
6289 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
6471 ns = xmlSearchNs(node->doc, node, prefix);
6506 xmlRemoveID(node->doc, prop);
6518 xmlTreeErr(XML_TREE_NOT_UTF8, (xmlNodePtr) node->doc,
6520 if (node->doc != NULL)
6521 node->doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
6523 prop->children = xmlNewDocText(node->doc, value);
6534 xmlAddID(NULL, node->doc, value, prop);
6614 ((node->doc != NULL) && (node->doc->dict != NULL) &&
6615 xmlDictOwns(node->doc->dict, node->content))) {
7317 * @doc: the document
7323 xmlGetDocCompressMode (xmlDocPtr doc) {
7324 if (doc == NULL) return(-1);
7325 return(doc->compression);
7330 * @doc: the document
7337 xmlSetDocCompressMode (xmlDocPtr doc, int mode) {
7338 if (doc == NULL) return;
7339 if (mode < 0) doc->compression = 0;
7340 else if (mode > 9) doc->compression = 9;
7341 else doc->compression = mode;
7386 * -2 == the doc->oldNs XML ns-decl
7387 * -3 == the doc->oldNs storage ns-decls
7526 * @doc: the doc
7530 * Creates or reuses an xmlNs struct on doc->oldNs with
7537 xmlDOMWrapStoreNs(xmlDocPtr doc,
7543 if (doc == NULL)
7545 ns = xmlTreeEnsureXMLDecl(doc);
7661 while ((cur != NULL) && (cur != (xmlNodePtr) cur->doc)) {
7767 * @doc: the doc
7773 * ns-references to doc->oldNs, thus ensuring the removed
7782 xmlDOMWrapRemoveNode(xmlDOMWrapCtxtPtr ctxt, xmlDocPtr doc,
7789 if ((node == NULL) || (doc == NULL) || (node->doc != doc))
7812 * Save out-of-scope ns-references in doc->oldNs.
7847 * Add to doc's oldNs.
7849 ns = xmlDOMWrapStoreNs(doc, node->ns->href,
7902 * @doc: the document
7915 xmlSearchNsByNamespaceStrict(xmlDocPtr doc, xmlNodePtr node,
7922 if ((doc == NULL) || (nsName == NULL) || (retNs == NULL))
7927 *retNs = xmlTreeEnsureXMLDecl(doc);
7973 ret = xmlNsInScope(doc, node, prev, ns->prefix);
7997 } while ((cur != NULL) && (cur->doc != (xmlDocPtr) cur));
8003 * @doc: the document
8015 xmlSearchNsByPrefixStrict(xmlDocPtr doc, xmlNodePtr node,
8022 if ((doc == NULL) || (node == NULL))
8029 *retNs = xmlTreeEnsureXMLDecl(doc);
8060 } while ((cur != NULL) && (cur->doc != (xmlDocPtr) cur));
8066 * @doc: the doc
8080 xmlDOMWrapNSNormDeclareNsForced(xmlDocPtr doc,
8103 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
8107 if (xmlSearchNsByPrefixStrict(doc, elem->parent, pref, NULL) == 1)
8138 * @doc: the doc
8148 * found it will either declare it on @elem, or store it in doc->oldNs.
8156 xmlDOMWrapNSNormAquireNormalizedNs(xmlDocPtr doc,
8168 if ((doc == NULL) || (ns == NULL) || (retNs == NULL) ||
8180 *retNs = xmlTreeEnsureXMLDecl(doc);
8230 tmpns = xmlDOMWrapStoreNs(doc, ns->href, ns->prefix);
8245 tmpns = xmlDOMWrapNSNormDeclareNsForced(doc, elem, ns->href,
8304 xmlDocPtr doc;
8315 if ((elem == NULL) || (elem->doc == NULL) ||
8319 doc = elem->doc;
8336 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
8420 ((xmlNodePtr) elem->parent->doc != elem->parent)) {
8457 if (xmlDOMWrapNSNormAquireNormalizedNs(doc, curElem,
8543 * @destDoc: the destination doc for adoption
8609 * Paranoid source-doc sanity check.
8611 if (cur->doc != sourceDoc) {
8613 * We'll assume XIncluded nodes if the doc differs.
8623 (cur->doc == node->doc))
8627 if (cur->doc != node->doc)
8630 cur->doc = destDoc;
8901 * @destDoc: the destination doc
8962 * Check node->doc sanity.
8964 if ((node->doc != NULL) && (sourceDoc != NULL) &&
8965 (node->doc != sourceDoc)) {
8972 sourceDoc = node->doc;
8987 if (cur->doc != sourceDoc) {
8989 * We'll assume XIncluded nodes if the doc differs.
9069 clone->doc = destDoc;
9195 * Different doc: Assign new entity-node if available.
9206 * Same doc: Use the current node's entity declaration
9305 idVal = xmlNodeListGetString(cur->doc, cur->children, 1);
9437 * @destDoc: the destination doc for adoption
9462 attr->doc = destDoc;
9504 cur->doc = destDoc;
9557 * @destDoc: the destination doc
9588 ((destParent != NULL) && (destParent->doc != destDoc)))
9591 * Check node->doc sanity.
9593 if ((node->doc != NULL) && (sourceDoc != NULL) &&
9594 (node->doc != sourceDoc)) {
9601 sourceDoc = node->doc;
9635 cur->doc = destDoc;