Lines Matching refs:ns

56 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns);
801 xmlSetNs(xmlNodePtr node, xmlNsPtr ns) { in xmlSetNs() argument
811 node->ns = ns; in xmlSetNs()
1826 xmlNewPropInternal(xmlNodePtr node, xmlNsPtr ns, in xmlNewPropInternal() argument
1861 cur->ns = ns; in xmlNewPropInternal()
1953 xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, in xmlNewNsProp() argument
1964 return xmlNewPropInternal(node, ns, name, value, 0); in xmlNewNsProp()
1978 xmlNewNsPropEatName(xmlNodePtr node, xmlNsPtr ns, xmlChar *name, in xmlNewNsPropEatName() argument
1989 return xmlNewPropInternal(node, ns, name, value, 1); in xmlNewNsPropEatName()
2214 xmlNewNode(xmlNsPtr ns, const xmlChar *name) { in xmlNewNode() argument
2237 cur->ns = ns; in xmlNewNode()
2256 xmlNewNodeEatName(xmlNsPtr ns, xmlChar *name) { in xmlNewNodeEatName() argument
2280 cur->ns = ns; in xmlNewNodeEatName()
2304 xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocNode() argument
2309 cur = xmlNewNodeEatName(ns, (xmlChar *) in xmlNewDocNode()
2312 cur = xmlNewNode(ns, name); in xmlNewDocNode()
2341 xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocNodeEatName() argument
2345 cur = xmlNewNodeEatName(ns, name); in xmlNewDocNodeEatName()
2375 xmlNewDocRawNode(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocRawNode() argument
2379 cur = xmlNewDocNode(doc, ns, name, NULL); in xmlNewDocRawNode()
2473 xmlNewTextChild(xmlNodePtr parent, xmlNsPtr ns, in xmlNewTextChild() argument
2497 if (ns == NULL) in xmlNewTextChild()
2498 cur = xmlNewDocRawNode(parent->doc, parent->ns, name, content); in xmlNewTextChild()
2500 cur = xmlNewDocRawNode(parent->doc, ns, name, content); in xmlNewTextChild()
2503 if (ns == NULL) in xmlNewTextChild()
2506 cur = xmlNewDocRawNode((xmlDocPtr) parent, ns, name, content); in xmlNewTextChild()
2508 cur = xmlNewDocRawNode( parent->doc, ns, name, content); in xmlNewTextChild()
2853 xmlNewChild(xmlNodePtr parent, xmlNsPtr ns, in xmlNewChild() argument
2877 if (ns == NULL) in xmlNewChild()
2878 cur = xmlNewDocNode(parent->doc, parent->ns, name, content); in xmlNewChild()
2880 cur = xmlNewDocNode(parent->doc, ns, name, content); in xmlNewChild()
2883 if (ns == NULL) in xmlNewChild()
2886 cur = xmlNewDocNode((xmlDocPtr) parent, ns, name, content); in xmlNewChild()
2888 cur = xmlNewDocNode( parent->doc, ns, name, content); in xmlNewChild()
2937 if (prop->ns == NULL) in xmlAddPropSibling()
2940 attr = xmlHasNsProp(cur->parent, prop->name, prop->ns->href); in xmlAddPropSibling()
3374 if (cur->ns == NULL) in xmlAddChild()
3377 lastattr = xmlHasNsProp(parent, cur->name, cur->ns->href); in xmlAddChild()
3995 if ((cur->ns != NULL) && (target != NULL)) { in xmlCopyPropInternal()
3996 xmlNsPtr ns; in xmlCopyPropInternal() local
3998 ns = xmlSearchNs(target->doc, target, cur->ns->prefix); in xmlCopyPropInternal()
3999 if (ns == NULL) { in xmlCopyPropInternal()
4005 ns = xmlSearchNs(cur->doc, cur->parent, cur->ns->prefix); in xmlCopyPropInternal()
4006 if (ns != NULL) { in xmlCopyPropInternal()
4018 ret->ns = xmlNewNs(root, ns->href, ns->prefix); in xmlCopyPropInternal()
4026 if (xmlStrEqual(ns->href, cur->ns->href)) { in xmlCopyPropInternal()
4028 ret->ns = ns; in xmlCopyPropInternal()
4034 ret->ns = xmlNewReconciliedNs(target->doc, target, cur->ns); in xmlCopyPropInternal()
4039 ret->ns = NULL; in xmlCopyPropInternal()
4236 if (node->ns != NULL) { in xmlStaticCopyNode()
4237 xmlNsPtr ns; in xmlStaticCopyNode() local
4239 ns = xmlSearchNs(doc, ret, node->ns->prefix); in xmlStaticCopyNode()
4240 if (ns == NULL) { in xmlStaticCopyNode()
4246 ns = xmlSearchNs(node->doc, node, node->ns->prefix); in xmlStaticCopyNode()
4247 if (ns != NULL) { in xmlStaticCopyNode()
4251 ret->ns = xmlNewNs(root, ns->href, ns->prefix); in xmlStaticCopyNode()
4253 ret->ns = xmlNewReconciliedNs(doc, ret, node->ns); in xmlStaticCopyNode()
4259 ret->ns = ns; in xmlStaticCopyNode()
4673 if (cur->ns) { in xmlGetNodePath()
4674 if (cur->ns->prefix != NULL) { in xmlGetNodePath()
4676 (char *)cur->ns->prefix, (char *)cur->name); in xmlGetNodePath()
4699 ((tmp->ns == cur->ns) || in xmlGetNodePath()
4700 ((tmp->ns != NULL) && (cur->ns != NULL) && in xmlGetNodePath()
4701 (xmlStrEqual(cur->ns->prefix, tmp->ns->prefix))))))) in xmlGetNodePath()
4711 ((tmp->ns == cur->ns) || in xmlGetNodePath()
4712 ((tmp->ns != NULL) && (cur->ns != NULL) && in xmlGetNodePath()
4713 (xmlStrEqual(cur->ns->prefix, tmp->ns->prefix))))))) in xmlGetNodePath()
4814 if (cur->ns) { in xmlGetNodePath()
4815 if (cur->ns->prefix != NULL) in xmlGetNodePath()
4817 (char *)cur->ns->prefix, (char *)cur->name); in xmlGetNodePath()
4942 xmlNsPtr ns; in xmlNodeSetLang() local
4972 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetLang()
4973 if (ns == NULL) in xmlNodeSetLang()
4975 xmlSetNsProp(cur, ns, BAD_CAST "lang", lang); in xmlNodeSetLang()
5016 xmlNsPtr ns; in xmlNodeSetSpacePreserve() local
5046 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetSpacePreserve()
5047 if (ns == NULL) in xmlNodeSetSpacePreserve()
5051 xmlSetNsProp(cur, ns, BAD_CAST "space", BAD_CAST "default"); in xmlNodeSetSpacePreserve()
5054 xmlSetNsProp(cur, ns, BAD_CAST "space", BAD_CAST "preserve"); in xmlNodeSetSpacePreserve()
5168 xmlNsPtr ns; in xmlNodeSetBase() local
5210 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetBase()
5211 if (ns == NULL) in xmlNodeSetBase()
5215 xmlSetNsProp(cur, ns, BAD_CAST "base", fixed); in xmlNodeSetBase()
5218 xmlSetNsProp(cur, ns, BAD_CAST "base", uri); in xmlNodeSetBase()
5946 xmlNsPtr ns; in xmlTreeEnsureXMLDecl() local
5947 ns = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlTreeEnsureXMLDecl()
5948 if (ns == NULL) { in xmlTreeEnsureXMLDecl()
5953 memset(ns, 0, sizeof(xmlNs)); in xmlTreeEnsureXMLDecl()
5954 ns->type = XML_LOCAL_NAMESPACE; in xmlTreeEnsureXMLDecl()
5955 ns->href = xmlStrdup(XML_XML_NAMESPACE); in xmlTreeEnsureXMLDecl()
5956 ns->prefix = xmlStrdup((const xmlChar *)"xml"); in xmlTreeEnsureXMLDecl()
5957 doc->oldNs = ns; in xmlTreeEnsureXMLDecl()
5958 return (ns); in xmlTreeEnsureXMLDecl()
6037 cur = node->ns; in xmlSearchNs()
6170 cur = node->ns; in xmlSearchNsByHref()
6200 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns) { in xmlNewReconciliedNs() argument
6212 if ((ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in xmlNewReconciliedNs()
6222 def = xmlSearchNsByHref(doc, tree, ns->href); in xmlNewReconciliedNs()
6230 if (ns->prefix == NULL) in xmlNewReconciliedNs()
6233 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in xmlNewReconciliedNs()
6238 if (ns->prefix == NULL) in xmlNewReconciliedNs()
6242 (char *)ns->prefix, counter++); in xmlNewReconciliedNs()
6249 def = xmlNewNs(tree, ns->href, prefix); in xmlNewReconciliedNs()
6287 if (node->ns != NULL) { in xmlReconciliateNs()
6308 if (oldNs[i] == node->ns) { in xmlReconciliateNs()
6309 node->ns = newNs[i]; in xmlReconciliateNs()
6317 n = xmlNewReconciliedNs(doc, tree, node->ns); in xmlReconciliateNs()
6340 oldNs[nbCache++] = node->ns; in xmlReconciliateNs()
6341 node->ns = n; in xmlReconciliateNs()
6351 if (attr->ns != NULL) { in xmlReconciliateNs()
6372 if (oldNs[i] == attr->ns) { in xmlReconciliateNs()
6373 attr->ns = newNs[i]; in xmlReconciliateNs()
6381 n = xmlNewReconciliedNs(doc, tree, attr->ns); in xmlReconciliateNs()
6404 oldNs[nbCache++] = attr->ns; in xmlReconciliateNs()
6405 attr->ns = n; in xmlReconciliateNs()
6466 if ((prop->ns == NULL) && xmlStrEqual(prop->name, name)) { in xmlGetPropNodeInternal()
6476 if ((prop->ns != NULL) && xmlStrEqual(prop->name, name) && in xmlGetPropNodeInternal()
6477 ((prop->ns->href == nsName) || in xmlGetPropNodeInternal()
6478 xmlStrEqual(prop->ns->href, nsName))) in xmlGetPropNodeInternal()
6502 if ((node->ns != NULL) && (node->ns->prefix != NULL)) { in xmlGetPropNodeInternal()
6503 tmpstr = xmlStrdup(node->ns->prefix); in xmlGetPropNodeInternal()
6779 xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) { in xmlUnsetNsProp() argument
6782 prop = xmlGetPropNodeInternal(node, name, (ns != NULL) ? ns->href : NULL, 0); in xmlUnsetNsProp()
6819 xmlNsPtr ns; in xmlSetProp() local
6821 ns = xmlSearchNs(node->doc, node, prefix); in xmlSetProp()
6824 if (ns != NULL) in xmlSetProp()
6825 return(xmlSetNsProp(node, ns, nqname, value)); in xmlSetProp()
6843 xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, in xmlSetNsProp() argument
6848 if (ns && (ns->href == NULL)) in xmlSetNsProp()
6850 prop = xmlGetPropNodeInternal(node, name, (ns != NULL) ? ns->href : NULL, 0); in xmlSetNsProp()
6863 prop->ns = ns; in xmlSetNsProp()
6890 return(xmlNewPropInternal(node, ns, name, value, 0)); in xmlSetNsProp()
7942 xmlNsPtr ns; in xmlDOMWrapStoreNs() local
7946 ns = xmlTreeEnsureXMLDecl(doc); in xmlDOMWrapStoreNs()
7947 if (ns == NULL) in xmlDOMWrapStoreNs()
7949 if (ns->next != NULL) { in xmlDOMWrapStoreNs()
7951 ns = ns->next; in xmlDOMWrapStoreNs()
7952 while (ns != NULL) { in xmlDOMWrapStoreNs()
7953 if (((ns->prefix == prefix) || in xmlDOMWrapStoreNs()
7954 xmlStrEqual(ns->prefix, prefix)) && in xmlDOMWrapStoreNs()
7955 xmlStrEqual(ns->href, nsName)) { in xmlDOMWrapStoreNs()
7956 return (ns); in xmlDOMWrapStoreNs()
7958 if (ns->next == NULL) in xmlDOMWrapStoreNs()
7960 ns = ns->next; in xmlDOMWrapStoreNs()
7964 if (ns != NULL) { in xmlDOMWrapStoreNs()
7965 ns->next = xmlNewNs(NULL, nsName, prefix); in xmlDOMWrapStoreNs()
7966 return (ns->next); in xmlDOMWrapStoreNs()
8027 xmlNsPtr ns; in xmlTreeNSListLookupByPrefix() local
8028 ns = nsList; in xmlTreeNSListLookupByPrefix()
8030 if ((prefix == ns->prefix) || in xmlTreeNSListLookupByPrefix()
8031 xmlStrEqual(prefix, ns->prefix)) { in xmlTreeNSListLookupByPrefix()
8032 return (ns); in xmlTreeNSListLookupByPrefix()
8034 ns = ns->next; in xmlTreeNSListLookupByPrefix()
8035 } while (ns != NULL); in xmlTreeNSListLookupByPrefix()
8055 xmlNsPtr ns; in xmlDOMWrapNSNormGatherInScopeNs() local
8070 ns = cur->nsDef; in xmlDOMWrapNSNormGatherInScopeNs()
8078 if ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapNSNormGatherInScopeNs()
8079 xmlStrEqual(ns->prefix, mi->newNs->prefix)) { in xmlDOMWrapNSNormGatherInScopeNs()
8089 ns, XML_TREE_NSMAP_PARENT); in xmlDOMWrapNSNormGatherInScopeNs()
8094 ns = ns->next; in xmlDOMWrapNSNormGatherInScopeNs()
8095 } while (ns != NULL); in xmlDOMWrapNSNormGatherInScopeNs()
8193 xmlNsPtr ns; in xmlDOMWrapRemoveNode() local
8224 ns = node->nsDef; in xmlDOMWrapRemoveNode()
8227 &nbList, ns, ns) == -1) in xmlDOMWrapRemoveNode()
8229 ns = ns->next; in xmlDOMWrapRemoveNode()
8230 } while (ns != NULL); in xmlDOMWrapRemoveNode()
8234 if (node->ns != NULL) { in xmlDOMWrapRemoveNode()
8240 if (node->ns == list[j]) { in xmlDOMWrapRemoveNode()
8241 node->ns = list[++j]; in xmlDOMWrapRemoveNode()
8246 ns = NULL; in xmlDOMWrapRemoveNode()
8255 ns = xmlDOMWrapStoreNs(doc, node->ns->href, in xmlDOMWrapRemoveNode()
8256 node->ns->prefix); in xmlDOMWrapRemoveNode()
8257 if (ns == NULL) in xmlDOMWrapRemoveNode()
8260 if (ns != NULL) { in xmlDOMWrapRemoveNode()
8265 &nbList, node->ns, ns) == -1) in xmlDOMWrapRemoveNode()
8268 node->ns = ns; in xmlDOMWrapRemoveNode()
8326 xmlNsPtr ns, prevns; in xmlSearchNsByNamespaceStrict() local
8344 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlSearchNsByNamespaceStrict()
8345 if (prefixed && (ns->prefix == NULL)) in xmlSearchNsByNamespaceStrict()
8354 if ((prevns->prefix == ns->prefix) || in xmlSearchNsByNamespaceStrict()
8356 (ns->prefix != NULL) && in xmlSearchNsByNamespaceStrict()
8357 xmlStrEqual(prevns->prefix, ns->prefix))) { in xmlSearchNsByNamespaceStrict()
8371 if ((nsName == ns->href) || in xmlSearchNsByNamespaceStrict()
8372 xmlStrEqual(nsName, ns->href)) { in xmlSearchNsByNamespaceStrict()
8381 ret = xmlNsInScope(doc, node, prev, ns->prefix); in xmlSearchNsByNamespaceStrict()
8394 *retNs = ns; in xmlSearchNsByNamespaceStrict()
8428 xmlNsPtr ns; in xmlSearchNsByPrefixStrict() local
8447 ns = cur->nsDef; in xmlSearchNsByPrefixStrict()
8449 if ((prefix == ns->prefix) || in xmlSearchNsByPrefixStrict()
8450 xmlStrEqual(prefix, ns->prefix)) in xmlSearchNsByPrefixStrict()
8455 if (ns->href == NULL) in xmlSearchNsByPrefixStrict()
8458 *retNs = ns; in xmlSearchNsByPrefixStrict()
8461 ns = ns->next; in xmlSearchNsByPrefixStrict()
8462 } while (ns != NULL); in xmlSearchNsByPrefixStrict()
8569 xmlNsPtr ns, in xmlDOMWrapNSNormAquireNormalizedNs() argument
8579 if ((doc == NULL) || (ns == NULL) || (retNs == NULL) || in xmlDOMWrapNSNormAquireNormalizedNs()
8587 if (IS_STR_XML(ns->prefix)) { in xmlDOMWrapNSNormAquireNormalizedNs()
8623 ((mi->newNs->href == ns->href) || in xmlDOMWrapNSNormAquireNormalizedNs()
8624 xmlStrEqual(mi->newNs->href, ns->href))) { in xmlDOMWrapNSNormAquireNormalizedNs()
8626 mi->oldNs = ns; in xmlDOMWrapNSNormAquireNormalizedNs()
8641 tmpns = xmlDOMWrapStoreNs(doc, ns->href, ns->prefix); in xmlDOMWrapNSNormAquireNormalizedNs()
8647 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns, in xmlDOMWrapNSNormAquireNormalizedNs()
8656 tmpns = xmlDOMWrapNSNormDeclareNsForced(doc, elem, ns->href, in xmlDOMWrapNSNormAquireNormalizedNs()
8657 ns->prefix, 0); in xmlDOMWrapNSNormAquireNormalizedNs()
8668 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapNSNormAquireNormalizedNs()
8669 xmlStrEqual(ns->prefix, mi->newNs->prefix))) { in xmlDOMWrapNSNormAquireNormalizedNs()
8678 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns, tmpns, depth) == NULL) { in xmlDOMWrapNSNormAquireNormalizedNs()
8714 xmlNsPtr ns, prevns; in xmlDOMWrapReconcileNamespaces() local
8743 ns = cur->nsDef; in xmlDOMWrapReconcileNamespaces()
8744 while (ns != NULL) { in xmlDOMWrapReconcileNamespaces()
8765 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapReconcileNamespaces()
8766 xmlStrEqual(ns->prefix, mi->newNs->prefix)) && in xmlDOMWrapReconcileNamespaces()
8767 ((ns->href == mi->newNs->href) || in xmlDOMWrapReconcileNamespaces()
8768 xmlStrEqual(ns->href, mi->newNs->href))) in xmlDOMWrapReconcileNamespaces()
8775 &sizeRedund, &nbRedund, ns, mi->newNs) == -1) in xmlDOMWrapReconcileNamespaces()
8781 prevns->next = ns->next; in xmlDOMWrapReconcileNamespaces()
8783 cur->nsDef = ns->next; in xmlDOMWrapReconcileNamespaces()
8793 if ((cur->ns != NULL) && adoptns && (cur->ns == ns)) in xmlDOMWrapReconcileNamespaces()
8802 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapReconcileNamespaces()
8803 xmlStrEqual(ns->prefix, mi->newNs->prefix))) { in xmlDOMWrapReconcileNamespaces()
8812 if (xmlDOMWrapNsMapAddItem(&nsMap, -1, ns, ns, in xmlDOMWrapReconcileNamespaces()
8816 prevns = ns; in xmlDOMWrapReconcileNamespaces()
8818 ns = ns->next; in xmlDOMWrapReconcileNamespaces()
8826 if (cur->ns == NULL) in xmlDOMWrapReconcileNamespaces()
8843 if (cur->ns == listRedund[j]) { in xmlDOMWrapReconcileNamespaces()
8844 cur->ns = listRedund[++j]; in xmlDOMWrapReconcileNamespaces()
8858 (cur->ns == mi->oldNs)) { in xmlDOMWrapReconcileNamespaces()
8860 cur->ns = mi->newNs; in xmlDOMWrapReconcileNamespaces()
8869 cur->ns, &ns, in xmlDOMWrapReconcileNamespaces()
8874 cur->ns = ns; in xmlDOMWrapReconcileNamespaces()
8983 xmlNsPtr ns = NULL; in xmlDOMWrapAdoptBranch() local
9075 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlDOMWrapAdoptBranch()
9088 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapAdoptBranch()
9089 xmlStrEqual(ns->prefix, in xmlDOMWrapAdoptBranch()
9100 ns, ns, depth) == NULL) in xmlDOMWrapAdoptBranch()
9107 if (cur->ns == NULL) in xmlDOMWrapAdoptBranch()
9125 (cur->ns == mi->oldNs)) { in xmlDOMWrapAdoptBranch()
9127 cur->ns = mi->newNs; in xmlDOMWrapAdoptBranch()
9139 ns = ctxt->getNsForNodeFunc(ctxt, cur, in xmlDOMWrapAdoptBranch()
9140 cur->ns->href, cur->ns->prefix); in xmlDOMWrapAdoptBranch()
9146 cur->ns, ns, XML_TREE_NSMAP_CUSTOM) == NULL) in xmlDOMWrapAdoptBranch()
9148 cur->ns = ns; in xmlDOMWrapAdoptBranch()
9156 cur->ns, &ns, in xmlDOMWrapAdoptBranch()
9162 cur->ns = ns; in xmlDOMWrapAdoptBranch()
9353 xmlNsPtr ns; in xmlDOMWrapCloneNode() local
9535 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlDOMWrapCloneNode()
9548 if (ns->href != NULL) in xmlDOMWrapCloneNode()
9549 cloneNs->href = xmlStrdup(ns->href); in xmlDOMWrapCloneNode()
9550 if (ns->prefix != NULL) in xmlDOMWrapCloneNode()
9551 cloneNs->prefix = xmlStrdup(ns->prefix); in xmlDOMWrapCloneNode()
9571 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapCloneNode()
9572 xmlStrEqual(ns->prefix, in xmlDOMWrapCloneNode()
9586 ns, cloneNs, depth) == NULL) in xmlDOMWrapCloneNode()
9641 if (cur->ns == NULL) in xmlDOMWrapCloneNode()
9666 (cur->ns == mi->oldNs)) { in xmlDOMWrapCloneNode()
9670 clone->ns = mi->newNs; in xmlDOMWrapCloneNode()
9682 ns = ctxt->getNsForNodeFunc(ctxt, cur, in xmlDOMWrapCloneNode()
9683 cur->ns->href, cur->ns->prefix); in xmlDOMWrapCloneNode()
9688 cur->ns, ns, XML_TREE_NSMAP_CUSTOM) == NULL) in xmlDOMWrapCloneNode()
9690 clone->ns = ns; in xmlDOMWrapCloneNode()
9698 cur->ns, &ns, in xmlDOMWrapCloneNode()
9705 clone->ns = ns; in xmlDOMWrapCloneNode()
9881 if (attr->ns != NULL) { in xmlDOMWrapAdoptAttr()
9882 xmlNsPtr ns = NULL; in xmlDOMWrapAdoptAttr() local
9888 if (IS_STR_XML(attr->ns->prefix)) { in xmlDOMWrapAdoptAttr()
9889 ns = xmlTreeEnsureXMLDecl(destDoc); in xmlDOMWrapAdoptAttr()
9894 ns = xmlDOMWrapStoreNs(destDoc, attr->ns->href, attr->ns->prefix); in xmlDOMWrapAdoptAttr()
9899 if (xmlSearchNsByNamespaceStrict(destDoc, destParent, attr->ns->href, in xmlDOMWrapAdoptAttr()
9900 &ns, 1) == -1) in xmlDOMWrapAdoptAttr()
9902 if (ns == NULL) { in xmlDOMWrapAdoptAttr()
9903 ns = xmlDOMWrapNSNormDeclareNsForced(destDoc, destParent, in xmlDOMWrapAdoptAttr()
9904 attr->ns->href, attr->ns->prefix, 1); in xmlDOMWrapAdoptAttr()
9907 if (ns == NULL) in xmlDOMWrapAdoptAttr()
9909 attr->ns = ns; in xmlDOMWrapAdoptAttr()