Author: amassari
Date: Mon Oct 31 09:28:35 2005
New Revision: 329867

URL: http://svn.apache.org/viewcvs?rev=329867&view=rev
Log:
bug# 1479, part II

Modified:
    xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp

Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp?rev=329867&r1=329866&r2=329867&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp Mon Oct 31 
09:28:35 2005
@@ -533,9 +533,13 @@
 
 bool DOMDocumentTypeImpl::isSupported(const XMLCh *feature, const XMLCh 
*version) const
 {
-    // check for 'DOMDocumentTypeImpl'
-    if(XMLString::equals(feature, 
XMLUni::fgXercescInterfaceDOMDocumentTypeImpl))
-        return true;
+    // check for 'DOMDocumentTypeImpl' or '+DOMDocumentTypeImpl'
+    if(feature && *feature)
+    {
+        if((*feature==chPlus && XMLString::equals(feature+1, 
XMLUni::fgXercescInterfaceDOMDocumentTypeImpl)) ||
+           XMLString::equals(feature, 
XMLUni::fgXercescInterfaceDOMDocumentTypeImpl))
+            return true;
+    }
     return fNode.isSupported (feature, version);
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to