diff --git a/src/xercesc/dom/impl/DOMElementImpl.cpp b/src/xercesc/dom/impl/DOMElementImpl.cpp
index cb19f8c8f41d5e4df5848d5675c2ee85cba7c232..d1d59b5899b957c66e8210743f8fd7175c2a0980 100644
--- a/src/xercesc/dom/impl/DOMElementImpl.cpp
+++ b/src/xercesc/dom/impl/DOMElementImpl.cpp
@@ -207,7 +207,7 @@ void DOMElementImpl::removeAttribute(const XMLCh *nam)
         throw DOMException(
              DOMException::NO_MODIFICATION_ALLOWED_ERR, 0);
 
-    XMLSize_t i = fAttributes->findNamePoint(nam);
+    XMLSSize_t i = fAttributes->findNamePoint(nam);
     if (i >= 0)
     {
         DOMNode *att = fAttributes->removeNamedItemAt(i);
@@ -227,7 +227,7 @@ DOMAttr *DOMElementImpl::removeAttributeNode(DOMAttr *oldAttr)
 
     // Since there is no removeAttributeNodeNS, check if this oldAttr has NS or not
     const XMLCh* localName = oldAttr->getLocalName();
-    XMLSize_t i = 0;
+    XMLSSize_t i = 0;
     if (localName)
         i = fAttributes->findNamePoint(oldAttr->getNamespaceURI(), localName);
     else
@@ -335,7 +335,7 @@ void DOMElementImpl::removeAttributeNS(const XMLCh *fNamespaceURI,
         throw DOMException(
         DOMException::NO_MODIFICATION_ALLOWED_ERR, 0);
 
-    XMLSize_t i = fAttributes->findNamePoint(fNamespaceURI, fLocalName);
+    XMLSSize_t i = fAttributes->findNamePoint(fNamespaceURI, fLocalName);
     if (i >= 0)
     {
         DOMNode *att = fAttributes->removeNamedItemAt(i);