Author: borisk
Date: Wed Feb 17 17:34:05 2010
New Revision: 911102
URL: http://svn.apache.org/viewvc?rev=911102&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/trunk/src/xercesc/dom/impl/DOMDocumentImpl.cpp
Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentImpl.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentImpl.cpp?rev=911102&r1=911101&r2=911102&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentImpl.cpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentImpl.cpp Wed Feb 17 17:34:05
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]