Lines Matching refs:ns
53 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns);
791 xmlSetNs(xmlNodePtr node, xmlNsPtr ns) { in xmlSetNs() argument
799 node->ns = ns; in xmlSetNs()
1792 xmlNewPropInternal(xmlNodePtr node, xmlNsPtr ns, in xmlNewPropInternal() argument
1827 cur->ns = ns; in xmlNewPropInternal()
1919 xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, in xmlNewNsProp() argument
1930 return xmlNewPropInternal(node, ns, name, value, 0); in xmlNewNsProp()
1944 xmlNewNsPropEatName(xmlNodePtr node, xmlNsPtr ns, xmlChar *name, in xmlNewNsPropEatName() argument
1955 return xmlNewPropInternal(node, ns, name, value, 1); in xmlNewNsPropEatName()
2180 xmlNewNode(xmlNsPtr ns, const xmlChar *name) { in xmlNewNode() argument
2203 cur->ns = ns; in xmlNewNode()
2222 xmlNewNodeEatName(xmlNsPtr ns, xmlChar *name) { in xmlNewNodeEatName() argument
2246 cur->ns = ns; in xmlNewNodeEatName()
2270 xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocNode() argument
2275 cur = xmlNewNodeEatName(ns, (xmlChar *) in xmlNewDocNode()
2278 cur = xmlNewNode(ns, name); in xmlNewDocNode()
2307 xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocNodeEatName() argument
2311 cur = xmlNewNodeEatName(ns, name); in xmlNewDocNodeEatName()
2341 xmlNewDocRawNode(xmlDocPtr doc, xmlNsPtr ns, in xmlNewDocRawNode() argument
2345 cur = xmlNewDocNode(doc, ns, name, NULL); in xmlNewDocRawNode()
2439 xmlNewTextChild(xmlNodePtr parent, xmlNsPtr ns, in xmlNewTextChild() argument
2463 if (ns == NULL) in xmlNewTextChild()
2464 cur = xmlNewDocRawNode(parent->doc, parent->ns, name, content); in xmlNewTextChild()
2466 cur = xmlNewDocRawNode(parent->doc, ns, name, content); in xmlNewTextChild()
2469 if (ns == NULL) in xmlNewTextChild()
2472 cur = xmlNewDocRawNode((xmlDocPtr) parent, ns, name, content); in xmlNewTextChild()
2474 cur = xmlNewDocRawNode( parent->doc, ns, name, content); in xmlNewTextChild()
2819 xmlNewChild(xmlNodePtr parent, xmlNsPtr ns, in xmlNewChild() argument
2843 if (ns == NULL) in xmlNewChild()
2844 cur = xmlNewDocNode(parent->doc, parent->ns, name, content); in xmlNewChild()
2846 cur = xmlNewDocNode(parent->doc, ns, name, content); in xmlNewChild()
2849 if (ns == NULL) in xmlNewChild()
2852 cur = xmlNewDocNode((xmlDocPtr) parent, ns, name, content); in xmlNewChild()
2854 cur = xmlNewDocNode( parent->doc, ns, name, content); in xmlNewChild()
2901 if (prop->ns == NULL) in xmlAddPropSibling()
2904 attr = xmlHasNsProp(cur->parent, prop->name, prop->ns->href); in xmlAddPropSibling()
3338 if (cur->ns == NULL) in xmlAddChild()
3341 lastattr = xmlHasNsProp(parent, cur->name, cur->ns->href); in xmlAddChild()
3949 if ((cur->ns != NULL) && (target != NULL)) { in xmlCopyPropInternal()
3950 xmlNsPtr ns; in xmlCopyPropInternal() local
3952 ns = xmlSearchNs(target->doc, target, cur->ns->prefix); in xmlCopyPropInternal()
3953 if (ns == NULL) { in xmlCopyPropInternal()
3959 ns = xmlSearchNs(cur->doc, cur->parent, cur->ns->prefix); in xmlCopyPropInternal()
3960 if (ns != NULL) { in xmlCopyPropInternal()
3972 ret->ns = xmlNewNs(root, ns->href, ns->prefix); in xmlCopyPropInternal()
3980 if (xmlStrEqual(ns->href, cur->ns->href)) { in xmlCopyPropInternal()
3982 ret->ns = ns; in xmlCopyPropInternal()
3988 ret->ns = xmlNewReconciliedNs(target->doc, target, cur->ns); in xmlCopyPropInternal()
3993 ret->ns = NULL; in xmlCopyPropInternal()
4188 if (node->ns != NULL) { in xmlStaticCopyNode()
4189 xmlNsPtr ns; in xmlStaticCopyNode() local
4191 ns = xmlSearchNs(doc, ret, node->ns->prefix); in xmlStaticCopyNode()
4192 if (ns == NULL) { in xmlStaticCopyNode()
4198 ns = xmlSearchNs(node->doc, node, node->ns->prefix); in xmlStaticCopyNode()
4199 if (ns != NULL) { in xmlStaticCopyNode()
4203 ret->ns = xmlNewNs(root, ns->href, ns->prefix); in xmlStaticCopyNode()
4205 ret->ns = xmlNewReconciliedNs(doc, ret, node->ns); in xmlStaticCopyNode()
4211 ret->ns = ns; in xmlStaticCopyNode()
4587 if (cur->ns) { in xmlGetNodePath()
4588 if (cur->ns->prefix != NULL) { in xmlGetNodePath()
4590 (char *)cur->ns->prefix, (char *)cur->name); in xmlGetNodePath()
4613 ((tmp->ns == cur->ns) || in xmlGetNodePath()
4614 ((tmp->ns != NULL) && (cur->ns != NULL) && in xmlGetNodePath()
4615 (xmlStrEqual(cur->ns->prefix, tmp->ns->prefix))))))) in xmlGetNodePath()
4625 ((tmp->ns == cur->ns) || in xmlGetNodePath()
4626 ((tmp->ns != NULL) && (cur->ns != NULL) && in xmlGetNodePath()
4627 (xmlStrEqual(cur->ns->prefix, tmp->ns->prefix))))))) in xmlGetNodePath()
4728 if (cur->ns) { in xmlGetNodePath()
4729 if (cur->ns->prefix != NULL) in xmlGetNodePath()
4731 (char *)cur->ns->prefix, (char *)cur->name); in xmlGetNodePath()
4856 xmlNsPtr ns; in xmlNodeSetLang() local
4886 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetLang()
4887 if (ns == NULL) in xmlNodeSetLang()
4889 xmlSetNsProp(cur, ns, BAD_CAST "lang", lang); in xmlNodeSetLang()
4928 xmlNsPtr ns; in xmlNodeSetSpacePreserve() local
4958 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetSpacePreserve()
4959 if (ns == NULL) in xmlNodeSetSpacePreserve()
4963 xmlSetNsProp(cur, ns, BAD_CAST "space", BAD_CAST "default"); in xmlNodeSetSpacePreserve()
4966 xmlSetNsProp(cur, ns, BAD_CAST "space", BAD_CAST "preserve"); in xmlNodeSetSpacePreserve()
5073 xmlNsPtr ns; in xmlNodeSetBase() local
5115 ns = xmlSearchNsByHref(cur->doc, cur, XML_XML_NAMESPACE); in xmlNodeSetBase()
5116 if (ns == NULL) in xmlNodeSetBase()
5120 xmlSetNsProp(cur, ns, BAD_CAST "base", fixed); in xmlNodeSetBase()
5123 xmlSetNsProp(cur, ns, BAD_CAST "base", uri); in xmlNodeSetBase()
5820 xmlNsPtr ns; in xmlTreeEnsureXMLDecl() local
5821 ns = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlTreeEnsureXMLDecl()
5822 if (ns == NULL) { in xmlTreeEnsureXMLDecl()
5827 memset(ns, 0, sizeof(xmlNs)); in xmlTreeEnsureXMLDecl()
5828 ns->type = XML_LOCAL_NAMESPACE; in xmlTreeEnsureXMLDecl()
5829 ns->href = xmlStrdup(XML_XML_NAMESPACE); in xmlTreeEnsureXMLDecl()
5830 ns->prefix = xmlStrdup((const xmlChar *)"xml"); in xmlTreeEnsureXMLDecl()
5831 doc->oldNs = ns; in xmlTreeEnsureXMLDecl()
5832 return (ns); in xmlTreeEnsureXMLDecl()
5911 cur = node->ns; in xmlSearchNs()
6044 cur = node->ns; in xmlSearchNsByHref()
6074 xmlNewReconciliedNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns) { in xmlNewReconciliedNs() argument
6086 if ((ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in xmlNewReconciliedNs()
6096 def = xmlSearchNsByHref(doc, tree, ns->href); in xmlNewReconciliedNs()
6104 if (ns->prefix == NULL) in xmlNewReconciliedNs()
6107 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in xmlNewReconciliedNs()
6112 if (ns->prefix == NULL) in xmlNewReconciliedNs()
6116 (char *)ns->prefix, counter++); in xmlNewReconciliedNs()
6123 def = xmlNewNs(tree, ns->href, prefix); in xmlNewReconciliedNs()
6161 if (node->ns != NULL) { in xmlReconciliateNs()
6182 if (oldNs[i] == node->ns) { in xmlReconciliateNs()
6183 node->ns = newNs[i]; in xmlReconciliateNs()
6191 n = xmlNewReconciliedNs(doc, tree, node->ns); in xmlReconciliateNs()
6214 oldNs[nbCache++] = node->ns; in xmlReconciliateNs()
6215 node->ns = n; in xmlReconciliateNs()
6225 if (attr->ns != NULL) { in xmlReconciliateNs()
6246 if (oldNs[i] == attr->ns) { in xmlReconciliateNs()
6247 attr->ns = newNs[i]; in xmlReconciliateNs()
6255 n = xmlNewReconciliedNs(doc, tree, attr->ns); in xmlReconciliateNs()
6278 oldNs[nbCache++] = attr->ns; in xmlReconciliateNs()
6279 attr->ns = n; in xmlReconciliateNs()
6340 if ((prop->ns == NULL) && xmlStrEqual(prop->name, name)) { in xmlGetPropNodeInternal()
6350 if ((prop->ns != NULL) && xmlStrEqual(prop->name, name) && in xmlGetPropNodeInternal()
6351 ((prop->ns->href == nsName) || in xmlGetPropNodeInternal()
6352 xmlStrEqual(prop->ns->href, nsName))) in xmlGetPropNodeInternal()
6376 if ((node->ns != NULL) && (node->ns->prefix != NULL)) { in xmlGetPropNodeInternal()
6377 tmpstr = xmlStrdup(node->ns->prefix); in xmlGetPropNodeInternal()
6653 xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) { in xmlUnsetNsProp() argument
6656 prop = xmlGetPropNodeInternal(node, name, (ns != NULL) ? ns->href : NULL, 0); in xmlUnsetNsProp()
6693 xmlNsPtr ns; in xmlSetProp() local
6695 ns = xmlSearchNs(node->doc, node, prefix); in xmlSetProp()
6698 if (ns != NULL) in xmlSetProp()
6699 return(xmlSetNsProp(node, ns, nqname, value)); in xmlSetProp()
6717 xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, in xmlSetNsProp() argument
6722 if (ns && (ns->href == NULL)) in xmlSetNsProp()
6724 prop = xmlGetPropNodeInternal(node, name, (ns != NULL) ? ns->href : NULL, 0); in xmlSetNsProp()
6737 prop->ns = ns; in xmlSetNsProp()
6764 return(xmlNewPropInternal(node, ns, name, value, 0)); in xmlSetNsProp()
7773 xmlNsPtr ns; in xmlDOMWrapStoreNs() local
7777 ns = xmlTreeEnsureXMLDecl(doc); in xmlDOMWrapStoreNs()
7778 if (ns == NULL) in xmlDOMWrapStoreNs()
7780 if (ns->next != NULL) { in xmlDOMWrapStoreNs()
7782 ns = ns->next; in xmlDOMWrapStoreNs()
7783 while (ns != NULL) { in xmlDOMWrapStoreNs()
7784 if (((ns->prefix == prefix) || in xmlDOMWrapStoreNs()
7785 xmlStrEqual(ns->prefix, prefix)) && in xmlDOMWrapStoreNs()
7786 xmlStrEqual(ns->href, nsName)) { in xmlDOMWrapStoreNs()
7787 return (ns); in xmlDOMWrapStoreNs()
7789 if (ns->next == NULL) in xmlDOMWrapStoreNs()
7791 ns = ns->next; in xmlDOMWrapStoreNs()
7795 if (ns != NULL) { in xmlDOMWrapStoreNs()
7796 ns->next = xmlNewNs(NULL, nsName, prefix); in xmlDOMWrapStoreNs()
7797 return (ns->next); in xmlDOMWrapStoreNs()
7858 xmlNsPtr ns; in xmlTreeNSListLookupByPrefix() local
7859 ns = nsList; in xmlTreeNSListLookupByPrefix()
7861 if ((prefix == ns->prefix) || in xmlTreeNSListLookupByPrefix()
7862 xmlStrEqual(prefix, ns->prefix)) { in xmlTreeNSListLookupByPrefix()
7863 return (ns); in xmlTreeNSListLookupByPrefix()
7865 ns = ns->next; in xmlTreeNSListLookupByPrefix()
7866 } while (ns != NULL); in xmlTreeNSListLookupByPrefix()
7886 xmlNsPtr ns; in xmlDOMWrapNSNormGatherInScopeNs() local
7899 ns = cur->nsDef; in xmlDOMWrapNSNormGatherInScopeNs()
7907 if ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapNSNormGatherInScopeNs()
7908 xmlStrEqual(ns->prefix, mi->newNs->prefix)) { in xmlDOMWrapNSNormGatherInScopeNs()
7918 ns, XML_TREE_NSMAP_PARENT); in xmlDOMWrapNSNormGatherInScopeNs()
7923 ns = ns->next; in xmlDOMWrapNSNormGatherInScopeNs()
7924 } while (ns != NULL); in xmlDOMWrapNSNormGatherInScopeNs()
8022 xmlNsPtr ns; in xmlDOMWrapRemoveNode() local
8053 ns = node->nsDef; in xmlDOMWrapRemoveNode()
8056 &nbList, ns, ns) == -1) in xmlDOMWrapRemoveNode()
8058 ns = ns->next; in xmlDOMWrapRemoveNode()
8059 } while (ns != NULL); in xmlDOMWrapRemoveNode()
8063 if (node->ns != NULL) { in xmlDOMWrapRemoveNode()
8069 if (node->ns == list[j]) { in xmlDOMWrapRemoveNode()
8070 node->ns = list[++j]; in xmlDOMWrapRemoveNode()
8075 ns = NULL; in xmlDOMWrapRemoveNode()
8084 ns = xmlDOMWrapStoreNs(doc, node->ns->href, in xmlDOMWrapRemoveNode()
8085 node->ns->prefix); in xmlDOMWrapRemoveNode()
8086 if (ns == NULL) in xmlDOMWrapRemoveNode()
8089 if (ns != NULL) { in xmlDOMWrapRemoveNode()
8094 &nbList, node->ns, ns) == -1) in xmlDOMWrapRemoveNode()
8097 node->ns = ns; in xmlDOMWrapRemoveNode()
8155 xmlNsPtr ns, prevns; in xmlSearchNsByNamespaceStrict() local
8171 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlSearchNsByNamespaceStrict()
8172 if (prefixed && (ns->prefix == NULL)) in xmlSearchNsByNamespaceStrict()
8181 if ((prevns->prefix == ns->prefix) || in xmlSearchNsByNamespaceStrict()
8183 (ns->prefix != NULL) && in xmlSearchNsByNamespaceStrict()
8184 xmlStrEqual(prevns->prefix, ns->prefix))) { in xmlSearchNsByNamespaceStrict()
8198 if ((nsName == ns->href) || in xmlSearchNsByNamespaceStrict()
8199 xmlStrEqual(nsName, ns->href)) { in xmlSearchNsByNamespaceStrict()
8208 ret = xmlNsInScope(doc, node, prev, ns->prefix); in xmlSearchNsByNamespaceStrict()
8221 *retNs = ns; in xmlSearchNsByNamespaceStrict()
8255 xmlNsPtr ns; in xmlSearchNsByPrefixStrict() local
8274 ns = cur->nsDef; in xmlSearchNsByPrefixStrict()
8276 if ((prefix == ns->prefix) || in xmlSearchNsByPrefixStrict()
8277 xmlStrEqual(prefix, ns->prefix)) in xmlSearchNsByPrefixStrict()
8282 if (ns->href == NULL) in xmlSearchNsByPrefixStrict()
8285 *retNs = ns; in xmlSearchNsByPrefixStrict()
8288 ns = ns->next; in xmlSearchNsByPrefixStrict()
8289 } while (ns != NULL); in xmlSearchNsByPrefixStrict()
8393 xmlNsPtr ns, in xmlDOMWrapNSNormAquireNormalizedNs() argument
8403 if ((doc == NULL) || (ns == NULL) || (retNs == NULL) || in xmlDOMWrapNSNormAquireNormalizedNs()
8411 if (IS_STR_XML(ns->prefix)) { in xmlDOMWrapNSNormAquireNormalizedNs()
8447 ((mi->newNs->href == ns->href) || in xmlDOMWrapNSNormAquireNormalizedNs()
8448 xmlStrEqual(mi->newNs->href, ns->href))) { in xmlDOMWrapNSNormAquireNormalizedNs()
8450 mi->oldNs = ns; in xmlDOMWrapNSNormAquireNormalizedNs()
8465 tmpns = xmlDOMWrapStoreNs(doc, ns->href, ns->prefix); in xmlDOMWrapNSNormAquireNormalizedNs()
8471 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns, in xmlDOMWrapNSNormAquireNormalizedNs()
8480 tmpns = xmlDOMWrapNSNormDeclareNsForced(doc, elem, ns->href, in xmlDOMWrapNSNormAquireNormalizedNs()
8481 ns->prefix, 0); in xmlDOMWrapNSNormAquireNormalizedNs()
8492 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapNSNormAquireNormalizedNs()
8493 xmlStrEqual(ns->prefix, mi->newNs->prefix))) { in xmlDOMWrapNSNormAquireNormalizedNs()
8502 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns, tmpns, depth) == NULL) { in xmlDOMWrapNSNormAquireNormalizedNs()
8538 xmlNsPtr ns, prevns; in xmlDOMWrapReconcileNamespaces() local
8567 ns = cur->nsDef; in xmlDOMWrapReconcileNamespaces()
8568 while (ns != NULL) { in xmlDOMWrapReconcileNamespaces()
8589 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapReconcileNamespaces()
8590 xmlStrEqual(ns->prefix, mi->newNs->prefix)) && in xmlDOMWrapReconcileNamespaces()
8591 ((ns->href == mi->newNs->href) || in xmlDOMWrapReconcileNamespaces()
8592 xmlStrEqual(ns->href, mi->newNs->href))) in xmlDOMWrapReconcileNamespaces()
8599 &sizeRedund, &nbRedund, ns, mi->newNs) == -1) in xmlDOMWrapReconcileNamespaces()
8605 prevns->next = ns->next; in xmlDOMWrapReconcileNamespaces()
8607 cur->nsDef = ns->next; in xmlDOMWrapReconcileNamespaces()
8617 if ((cur->ns != NULL) && adoptns && (cur->ns == ns)) in xmlDOMWrapReconcileNamespaces()
8626 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapReconcileNamespaces()
8627 xmlStrEqual(ns->prefix, mi->newNs->prefix))) { in xmlDOMWrapReconcileNamespaces()
8636 if (xmlDOMWrapNsMapAddItem(&nsMap, -1, ns, ns, in xmlDOMWrapReconcileNamespaces()
8640 prevns = ns; in xmlDOMWrapReconcileNamespaces()
8642 ns = ns->next; in xmlDOMWrapReconcileNamespaces()
8650 if (cur->ns == NULL) in xmlDOMWrapReconcileNamespaces()
8667 if (cur->ns == listRedund[j]) { in xmlDOMWrapReconcileNamespaces()
8668 cur->ns = listRedund[++j]; in xmlDOMWrapReconcileNamespaces()
8682 (cur->ns == mi->oldNs)) { in xmlDOMWrapReconcileNamespaces()
8684 cur->ns = mi->newNs; in xmlDOMWrapReconcileNamespaces()
8693 cur->ns, &ns, in xmlDOMWrapReconcileNamespaces()
8698 cur->ns = ns; in xmlDOMWrapReconcileNamespaces()
8807 xmlNsPtr ns = NULL; in xmlDOMWrapAdoptBranch() local
8896 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlDOMWrapAdoptBranch()
8909 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapAdoptBranch()
8910 xmlStrEqual(ns->prefix, in xmlDOMWrapAdoptBranch()
8921 ns, ns, depth) == NULL) in xmlDOMWrapAdoptBranch()
8928 if (cur->ns == NULL) in xmlDOMWrapAdoptBranch()
8946 (cur->ns == mi->oldNs)) { in xmlDOMWrapAdoptBranch()
8948 cur->ns = mi->newNs; in xmlDOMWrapAdoptBranch()
8960 ns = ctxt->getNsForNodeFunc(ctxt, cur, in xmlDOMWrapAdoptBranch()
8961 cur->ns->href, cur->ns->prefix); in xmlDOMWrapAdoptBranch()
8967 cur->ns, ns, XML_TREE_NSMAP_CUSTOM) == NULL) in xmlDOMWrapAdoptBranch()
8969 cur->ns = ns; in xmlDOMWrapAdoptBranch()
8977 cur->ns, &ns, in xmlDOMWrapAdoptBranch()
8983 cur->ns = ns; in xmlDOMWrapAdoptBranch()
9174 xmlNsPtr ns; in xmlDOMWrapCloneNode() local
9353 for (ns = cur->nsDef; ns != NULL; ns = ns->next) { in xmlDOMWrapCloneNode()
9366 if (ns->href != NULL) in xmlDOMWrapCloneNode()
9367 cloneNs->href = xmlStrdup(ns->href); in xmlDOMWrapCloneNode()
9368 if (ns->prefix != NULL) in xmlDOMWrapCloneNode()
9369 cloneNs->prefix = xmlStrdup(ns->prefix); in xmlDOMWrapCloneNode()
9389 ((ns->prefix == mi->newNs->prefix) || in xmlDOMWrapCloneNode()
9390 xmlStrEqual(ns->prefix, in xmlDOMWrapCloneNode()
9404 ns, cloneNs, depth) == NULL) in xmlDOMWrapCloneNode()
9459 if (cur->ns == NULL) in xmlDOMWrapCloneNode()
9484 (cur->ns == mi->oldNs)) { in xmlDOMWrapCloneNode()
9488 clone->ns = mi->newNs; in xmlDOMWrapCloneNode()
9500 ns = ctxt->getNsForNodeFunc(ctxt, cur, in xmlDOMWrapCloneNode()
9501 cur->ns->href, cur->ns->prefix); in xmlDOMWrapCloneNode()
9506 cur->ns, ns, XML_TREE_NSMAP_CUSTOM) == NULL) in xmlDOMWrapCloneNode()
9508 clone->ns = ns; in xmlDOMWrapCloneNode()
9516 cur->ns, &ns, in xmlDOMWrapCloneNode()
9523 clone->ns = ns; in xmlDOMWrapCloneNode()
9698 if (attr->ns != NULL) { in xmlDOMWrapAdoptAttr()
9699 xmlNsPtr ns = NULL; in xmlDOMWrapAdoptAttr() local
9705 if (IS_STR_XML(attr->ns->prefix)) { in xmlDOMWrapAdoptAttr()
9706 ns = xmlTreeEnsureXMLDecl(destDoc); in xmlDOMWrapAdoptAttr()
9711 ns = xmlDOMWrapStoreNs(destDoc, attr->ns->href, attr->ns->prefix); in xmlDOMWrapAdoptAttr()
9716 if (xmlSearchNsByNamespaceStrict(destDoc, destParent, attr->ns->href, in xmlDOMWrapAdoptAttr()
9717 &ns, 1) == -1) in xmlDOMWrapAdoptAttr()
9719 if (ns == NULL) { in xmlDOMWrapAdoptAttr()
9720 ns = xmlDOMWrapNSNormDeclareNsForced(destDoc, destParent, in xmlDOMWrapAdoptAttr()
9721 attr->ns->href, attr->ns->prefix, 1); in xmlDOMWrapAdoptAttr()
9724 if (ns == NULL) in xmlDOMWrapAdoptAttr()
9726 attr->ns = ns; in xmlDOMWrapAdoptAttr()