Author: borisk
Date: Wed Feb 17 17:35:43 2010
New Revision: 911103

URL: http://svn.apache.org/viewvc?rev=911103&view=rev
Log:
Remove explicit setting of prefix for cloned elements and attributes since
it is done properly by the create* functions (XERCESC-1913).

Modified:
    xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMDocumentImpl.cpp

Modified: xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMDocumentImpl.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMDocumentImpl.cpp?rev=911103&r1=911102&r2=911103&view=diff
==============================================================================
--- xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMDocumentImpl.cpp 
(original)
+++ xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMDocumentImpl.cpp Wed 
Feb 17 17:35:43 2010
@@ -1067,9 +1067,6 @@
             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 @@
                 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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to