From a99b447d3b99be73faa27326c0926c24b2c40f5d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov <borisk@apache.org> Date: Wed, 17 Feb 2010 17:34:05 +0000 Subject: [PATCH] Remove explicit setting of prefix for cloned elements and attributes since it is done properly by the create* functions (XERCESC-1913). git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@911102 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/dom/impl/DOMDocumentImpl.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/xercesc/dom/impl/DOMDocumentImpl.cpp b/src/xercesc/dom/impl/DOMDocumentImpl.cpp index 4a084e327..d6100d273 100644 --- a/src/xercesc/dom/impl/DOMDocumentImpl.cpp +++ b/src/xercesc/dom/impl/DOMDocumentImpl.cpp @@ -1067,9 +1067,6 @@ DOMNode *DOMDocumentImpl::importNode(const DOMNode *source, bool deep, bool clon else { DOMElementNSImpl* nsElem = (DOMElementNSImpl*)createElementNS(source->getNamespaceURI(), source->getNodeName()); - if(source->getNamespaceURI() != 0 && *source->getNamespaceURI() != 0) { - nsElem->setPrefix(source->getPrefix()); - } DOMTypeInfoImpl* clonedTypeInfo=NULL; // if the source has type informations, copy them DOMPSVITypeInfo* sourcePSVI=(DOMPSVITypeInfo*)source->getFeature(XMLUni::fgXercescInterfacePSVITypeInfo, 0); @@ -1118,9 +1115,6 @@ DOMNode *DOMDocumentImpl::importNode(const DOMNode *source, bool deep, bool clon newattr = (DOMAttrImpl*)createAttribute(source->getNodeName()); else { newattr = (DOMAttrImpl*)createAttributeNS(source->getNamespaceURI(), source->getNodeName()); - if(source->getNamespaceURI() != 0 && *source->getNamespaceURI() != 0) { - newattr->setPrefix(source->getPrefix()); - } } DOMTypeInfoImpl* clonedTypeInfo=NULL; // if the source has type informations, copy them -- GitLab